Skip to content

Commit a7b90da

Browse files
committed
Use changable Cmake includedir instead of static "include"
The CMAKE_INSTALL_INCLUDEDIR path (from GNUInstallDirs) lets the end-user change the install path.
1 parent c654109 commit a7b90da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ target_compile_features(${PROJECT_NAME} INTERFACE
4141

4242
target_include_directories(${PROJECT_NAME} INTERFACE
4343
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
44-
$<INSTALL_INTERFACE:include>)
44+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
45+
4546

4647
target_link_libraries(${PROJECT_NAME} INTERFACE
4748
# Always require threads

0 commit comments

Comments
 (0)