mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-10-16 18:56:54 +02:00
Use GNUInstallDirs to set installation directories
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user