Skip to content

Commit 3a4b550

Browse files
committed
Make sure installed glm::glm has the includes
1 parent dd45745 commit 3a4b550

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ add_library(glm::glm ALIAS glm)
2222
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
2323

2424
include(CPack)
25-
include(GNUInstallDirs)
2625
install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} PATTERN "CMakeLists.txt" EXCLUDE)
2726
install(EXPORT glm FILE glmConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glm NAMESPACE glm::)
2827
include(CMakePackageConfigHelpers)

glm/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ source_group("SIMD Files" FILES ${SIMD_HEADER})
4444

4545
add_library(glm INTERFACE)
4646

47+
include(GNUInstallDirs)
48+
4749
target_include_directories(glm INTERFACE
4850
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
4951
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>

0 commit comments

Comments
 (0)