Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 50a9cb75 authored by gsell's avatar gsell
Browse files

Master CMake script: new option 'USE_STATIC_LIBRARIES' added. This is on by...

Master CMake script: new option 'USE_STATIC_LIBRARIES' added. This is on by default. If set to off shared libraries are used if available
parent 706f8e7a
No related branches found
No related tags found
No related merge requests found
......@@ -50,9 +50,11 @@ add_definitions (-Drestrict=__restrict__ -DNOCTAssert)
add_compile_options (-Wall)
add_compile_options (-funroll-loops -fstrict-aliasing)
add_compile_options (-fPIE)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
option (USE_STATIC_LIBRARIES "Link with static libraries if available" ON)
if (NOT ${USE_STATIC_LIBRARIES})
add_compile_options (-fPIE -fPIC)
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
endif ()
# compiler dependent flags
message ("The underlying C++ compiler ID is: ${CMAKE_CXX_COMPILER_ID}")
......@@ -107,7 +109,9 @@ endif ()
find_package (H5Hut REQUIRED)
set (HDF5_USE_STATIC_LIBRARIES ON)
if (USE_STATIC_LIBRARIES)
set (HDF5_USE_STATIC_LIBRARIES ON)
endif ()
find_package (HDF5 REQUIRED)
message ("Found HDF5 libraries: ${HDF5_C_LIBRARIES}")
......@@ -115,7 +119,9 @@ find_package (GSL REQUIRED)
message ("Found gsl libraries: ${GSL_LIBRARIES}")
set (BOOSTROOT $ENV{BOOST_DIR})
set (Boost_USE_STATIC_LIBS ON)
if (USE_STATIC_LIBRARIES)
set (Boost_USE_STATIC_LIBS ON)
endif ()
set (Boost_USE_MULTITHREADED OFF)
set (Boost_USE_STATIC_RUNTIME OFF)
find_package (Boost
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment