~singpolyma/biboumi

5669950e206535747e1e0634fd16e987ac6474b3 — louiz’ 6 years ago fe22211 + c20978f
Merge branch 'patch-1' into 'master'

Set symbol visibility to hidden in cmake

See merge request !15
1 files changed, 1 insertions(+), 1 deletions(-)

M CMakeLists.txt
M CMakeLists.txt => CMakeLists.txt +1 -1
@@ 20,7 20,7 @@ find_library(LIBUBSAN NAMES ubsan libubsan.so.0)
#
## Set various debug flags (instrumentation libs, coverage, …)
#
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra -Wconversion")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++1y -pedantic -Wall -Wextra -Wconversion -fvisibility=hidden -fvisibility-inlines-hidden")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fprofile-arcs -ftest-coverage --coverage")
endif()