From 88c3c8df8bf67f9db67e1ae74f6b6f393682b1d1 Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Mon, 22 Aug 2022 13:21:54 +0200 Subject: [PATCH] CMake: use proper install dirs Signed-off-by: Stephan Lachnit --- CMakeLists.txt | 3 ++- lib/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42404b0..9620b9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ project (Vdt) #------------------------------------------------------------------------------- # Include the defaults include ( CMakeDefaults.txt ) +include ( GNUInstallDirs ) #------------------------------------------------------------------------------- # configuration options -- you may change them when running cmake ============== @@ -214,5 +215,5 @@ INSTALL(FILES include/tan.h include/vdtcore_common.h include/vdtMath.h - DESTINATION include/vdt) + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/vdt) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 09c9bc3..7509960 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -20,7 +20,7 @@ ADD_LIBRARY(vdt ${SRC_DIR}/vdtMath_signatures.cc ${INC_DIR}/vdtMath.h ) # Installation of the lib INSTALL(TARGETS vdt - DESTINATION lib) + DESTINATION ${CMAKE_INSTALL_LIBDIR}) # Build Vc wrapper (without c++11)