From 0587e77d995c2983e46746833172c7d658e8cd43 Mon Sep 17 00:00:00 2001 From: Matt Witherspoon <32485495+spoonincode@users.noreply.github.com> Date: Mon, 11 Jul 2022 18:24:15 -0400 Subject: [PATCH] use GNUInstallDirs and install libff in CMAKE_INSTALL_FULL_LIBDIR --- CMakeLists.txt | 2 ++ libff/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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