diff --git a/CMakeLists.txt b/CMakeLists.txt index c001353f4..5449af862 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,12 +218,12 @@ 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-config.cmake.in websocketpp-config.cmake @ONLY) +configure_file (websocketpp-configVersion.cmake.in websocketpp-configVersion.cmake @ONLY) # 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" + "websocketpp-config.cmake" + "websocketpp-configVersion.cmake" DESTINATION "${INSTALL_CMAKE_DIR}" COMPONENT dev)