Skip to content
Snippets Groups Projects
Commit a86e2137 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

[j.3] CMake + set(CMAKE_VISIBILITY_INLINES_HIDDEN YES) ()

Merging branch 'j.3'  into 'main'.

See merge request !2527
parents 79683733 a0be44a6
Branches
Tags
1 merge request!2527CMake + set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
Pipeline #140987 passed
......@@ -153,8 +153,6 @@ elseif(WIN32)
include(cmake/BornAgain/Windows)
endif()
include(cmake/BornAgain/CompilerInfo)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CLANG ON)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
......@@ -164,6 +162,7 @@ elseif(NOT WIN32)
message(FATAL_ERROR "Unsupported compiler, id=${CMAKE_CXX_COMPILER_ID}")
endif()
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
if(ZERO_TOLERANCE)
if (WIN32)
string(APPEND CMAKE_CXX_FLAGS " /WX")
......@@ -176,6 +175,8 @@ if(ALGORITHM_DIAGNOSTIC)
endif()
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -DBA_DEBUG") # changes behavior of ASSERT
include(cmake/BornAgain/CompilerInfo)
### Further configuration
# function definitions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment