1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
https://github.com/trahay/LiTL/pull/2
commit b57328c06aa0919fdca8673999d45df20a10be6f
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
Date: Wed Apr 2 00:14:20 2025 +0200
Fix header installation
There is no need to specify targets, these are already the defaults.
But GNUInstallDirs needs to be included to get the proper default
values.
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f534688..9abfbfd 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -45,9 +45,8 @@ SET(LITL_HEADERS
set_target_properties(litl PROPERTIES PUBLIC_HEADER "${LITL_HEADERS}")
+include(GNUInstallDirs)
install(
TARGETS litl
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
- PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
|