diff --git a/CMakeLists.txt b/CMakeLists.txt index 37978773..dd9cede9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,7 @@ include(CMakePackageConfigHelpers) configure_package_config_file( cmake/${PROJECT_NAME}.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake - INSTALL_DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cmake/${PROJECT_NAME} + INSTALL_DESTINATION lib/cmake/${PROJECT_NAME} PATH_VARS datadir ) @@ -30,7 +30,7 @@ write_basic_package_version_file( install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake - DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/cmake/${PROJECT_NAME} + DESTINATION lib/cmake/${PROJECT_NAME} ) add_subdirectory(data)