Skip to content

Commit cf9e0ab

Browse files
committed
fix installation paths
When specifying `DESTINATION lib`, all files get installed there, also the headers, therefore don't specify it so that files get installed in their default location instead. Also include GNUInstallDirs to make the installation paths configurable using standard CMake variables CMAKE_INSTALL_INCLUDEDIR and CMAKE_INSTALL_LIBDIR.
1 parent 50517ef commit cf9e0ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ set_target_properties(pplib
138138

139139
add_library(pplib::pplib ALIAS pplib)
140140

141+
include(GNUInstallDirs)
142+
141143
install(TARGETS pplib
142144
EXPORT pplib
143-
DESTINATION lib
144145
)
145146

146147
enable_testing()

0 commit comments

Comments
 (0)