diff --git a/CMakeLists.txt b/CMakeLists.txt index f0e3ce40..78f9f6db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 2.8) project (libff) +include( GNUInstallDirs ) + # Default to RelWithDebInfo configuration if no configuration is explicitly specified. if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Build type on single-configuration generators" FORCE) diff --git a/libff/CMakeLists.txt b/libff/CMakeLists.txt index 4f9e4d9a..4cf3772f 100644 --- a/libff/CMakeLists.txt +++ b/libff/CMakeLists.txt @@ -78,7 +78,7 @@ install( ) install( - TARGETS ff DESTINATION lib ${INSTALL_COMPONENT_ARGS} + TARGETS ff DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} ${INSTALL_COMPONENT_ARGS} ) # Tests