Skip to content

Commit

Permalink
Merge pull request #1108 from Zopolis4/gnuinstalldirt
Browse files Browse the repository at this point in the history
Use GNUInstallDirs to set installation directories
  • Loading branch information
redboltz committed Mar 7, 2024
2 parents 5f287d1 + d1af4a3 commit 68d085a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ SET (VERSION_REVISION ${CMAKE_MATCH_1})
SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION})

LIST (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/")
include(GNUInstallDirs)
SET (prefix ${CMAKE_INSTALL_PREFIX})
SET (exec_prefix "\${prefix}")
SET (libdir "\${exec_prefix}/lib")
SET (includedir "\${prefix}/include")
SET (exec_prefix ${CMAKE_INSTALL_PREFIX})
SET (libdir ${CMAKE_INSTALL_LIBDIR})
SET (includedir ${CMAKE_INSTALL_INCLUDEDIR})

OPTION (MSGPACK_32BIT "32bit compile" OFF)

Expand Down

0 comments on commit 68d085a

Please sign in to comment.