mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 18:11:49 +00:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
29f5ed006a | ||
|
a01aac4467 |
@@ -35,7 +35,9 @@ endif()
|
|||||||
macro(set_fairmq_cmake_policies)
|
macro(set_fairmq_cmake_policies)
|
||||||
# Find more details to each policy with cmake --help-policy CMPXXXX
|
# Find more details to each policy with cmake --help-policy CMPXXXX
|
||||||
foreach(policy
|
foreach(policy
|
||||||
|
CMP0025 # Compiler id for Apple Clang is now AppleClang.
|
||||||
CMP0028 # Double colon in target name means ALIAS or IMPORTED target.
|
CMP0028 # Double colon in target name means ALIAS or IMPORTED target.
|
||||||
|
CMP0042 # MACOSX_RPATH is enabled by default.
|
||||||
CMP0048 # The ``project()`` command manages VERSION variables.
|
CMP0048 # The ``project()`` command manages VERSION variables.
|
||||||
CMP0054 # Only interpret ``if()`` arguments as variables or keywords when unquoted.
|
CMP0054 # Only interpret ``if()`` arguments as variables or keywords when unquoted.
|
||||||
)
|
)
|
||||||
@@ -137,6 +139,13 @@ macro(set_fairmq_defaults)
|
|||||||
set(PROJECT_INSTALL_DATADIR ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME_LOWER})
|
set(PROJECT_INSTALL_DATADIR ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME_LOWER})
|
||||||
set(PROJECT_INSTALL_CMAKEMODDIR ${PROJECT_INSTALL_DATADIR}/cmake)
|
set(PROJECT_INSTALL_CMAKEMODDIR ${PROJECT_INSTALL_DATADIR}/cmake)
|
||||||
|
|
||||||
|
# https://cmake.org/Wiki/CMake_RPATH_handling#Always_full_RPATH
|
||||||
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||||
|
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/${PROJECT_INSTALL_LIBDIR}" isSystemDir)
|
||||||
|
if("${isSystemDir}" STREQUAL "-1")
|
||||||
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${PROJECT_INSTALL_LIBDIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Define export set, only one for now
|
# Define export set, only one for now
|
||||||
set(PROJECT_EXPORT_SET ${PROJECT_NAME}Targets)
|
set(PROJECT_EXPORT_SET ${PROJECT_NAME}Targets)
|
||||||
endmacro()
|
endmacro()
|
||||||
|
@@ -236,7 +236,10 @@ target_link_libraries(FairMQ
|
|||||||
${NANOMSG_DEPS}
|
${NANOMSG_DEPS}
|
||||||
${OFI_DEPS}
|
${OFI_DEPS}
|
||||||
)
|
)
|
||||||
|
set_target_properties(FairMQ PROPERTIES
|
||||||
|
VERSION ${PROJECT_VERSION}
|
||||||
|
SOVERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"
|
||||||
|
)
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# executables #
|
# executables #
|
||||||
|
Reference in New Issue
Block a user