mirror of
https://github.com/FairRootGroup/FairLogger.git
synced 2025-10-17 10:31:45 +00:00
Enable PIC by default
This commit is contained in:
@@ -129,6 +129,11 @@ macro(set_fairlogger_defaults)
|
|||||||
set(BUILD_SHARED_LIBS ON CACHE BOOL "Whether to build shared libraries or static archives")
|
set(BUILD_SHARED_LIBS ON CACHE BOOL "Whether to build shared libraries or static archives")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Set -fPIC as default for all library types
|
||||||
|
if(NOT CMAKE_POSITION_INDEPENDENT_CODE)
|
||||||
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Define CMAKE_INSTALL_*DIR family of variables
|
# Define CMAKE_INSTALL_*DIR family of variables
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user