Skip to content

Commit

Permalink
use GNUInstallDirs and install libff in CMAKE_INSTALL_FULL_LIBDIR
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Jul 11, 2022
1 parent e116069 commit 0587e77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion libff/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ install(
)

install(
TARGETS ff DESTINATION lib ${INSTALL_COMPONENT_ARGS}
TARGETS ff DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} ${INSTALL_COMPONENT_ARGS}
)

# Tests
Expand Down

0 comments on commit 0587e77

Please sign in to comment.