diff --git a/CMakeLists.txt b/CMakeLists.txt index c14ee3e9..a55b7790 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,6 @@ add_library(glm::glm ALIAS glm) if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR}) include(CPack) - include(GNUInstallDirs) install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} PATTERN "CMakeLists.txt" EXCLUDE) install(EXPORT glm FILE glmConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glm NAMESPACE glm::) include(CMakePackageConfigHelpers) diff --git a/glm/CMakeLists.txt b/glm/CMakeLists.txt index f7ccb6f3..cee0d2e7 100644 --- a/glm/CMakeLists.txt +++ b/glm/CMakeLists.txt @@ -44,6 +44,8 @@ source_group("SIMD Files" FILES ${SIMD_HEADER}) add_library(glm INTERFACE) +include(GNUInstallDirs) + target_include_directories(glm INTERFACE $ $