diff --git a/CMakeLists.txt b/CMakeLists.txt index d668b87e71..ab7d3cec3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -227,11 +227,11 @@ print_used_build_config() export (PACKAGE websocketpp) configure_file (websocketpp-config.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-config.cmake" @ONLY) -configure_file (websocketpp-configversion.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-configversion.cmake" @ONLY) +configure_file (websocketpp-configVersion.cmake.in "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-configVersion.cmake" @ONLY) -# Install the websocketpp-config.cmake and websocketpp-configversion.cmake +# Install the websocketpp-config.cmake and websocketpp-configVersion.cmake install (FILES "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-config.cmake" - "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-configversion.cmake" + "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/websocketpp-configVersion.cmake" DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev) diff --git a/websocketpp-config.cmake.in b/websocketpp-config.cmake.in index 4471f183d2..6afe569ea6 100644 --- a/websocketpp-config.cmake.in +++ b/websocketpp-config.cmake.in @@ -1,6 +1,7 @@ # - Config file for the websocketpp package # It defines the following variables +# WEBSOCKETPP_FOUND - indicates that the module was found # WEBSOCKETPP_INCLUDE_DIR - include directories -# Compute paths +set(WEBSOCKETPP_FOUND TRUE) set(WEBSOCKETPP_INCLUDE_DIR "@INSTALL_INCLUDE_DIR@") diff --git a/websocketpp-configversion.cmake.in b/websocketpp-configVersion.cmake.in similarity index 100% rename from websocketpp-configversion.cmake.in rename to websocketpp-configVersion.cmake.in