diff --git a/CMakeLists.txt b/CMakeLists.txt index f69f6795..cc6818bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,12 +155,10 @@ write_basic_package_version_file( ) # build tree package config -configure_package_config_file( - cmake/glmConfig.cmake.in +configure_file( + cmake/glmBuildConfig.cmake.in glmConfig.cmake - INSTALL_DESTINATION ${CMAKE_CURRENT_BINARY_DIR} - PATH_VARS CMAKE_INSTALL_INCLUDEDIR - NO_CHECK_REQUIRED_COMPONENTS_MACRO + COPYONLY ) # install tree package config diff --git a/cmake/glmBuildConfig.cmake.in b/cmake/glmBuildConfig.cmake.in new file mode 100644 index 00000000..ea324ab6 --- /dev/null +++ b/cmake/glmBuildConfig.cmake.in @@ -0,0 +1 @@ +include("${CMAKE_CURRENT_LIST_DIR}/glmTargets.cmake")