Commit 34e661fd authored by gsell's avatar gsell
Browse files

Merge branch '449-get-rid-of-linker-warning-on-macos-with-clang' into 'master'

Resolve "get rid of linker warning on macOS with clang"

Closes #449

See merge request !262
parents bb8942df 6037d710
......@@ -68,11 +68,18 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
add_compile_options (-Warray-bounds)
# Increase template depth for boost
add_compile_options (-ftemplate-depth=1024)
# get rid of linking warning with boost. Looks like that boost
# is using this visibility setting.
add_compile_options (-fvisibility=hidden)
add_compile_options (-fvisibility-inlines-hidden)
# Allow overloaded virtual functions (instances to be fixed in OPAL)
#add_compile_options (-Wno-overloaded-virtual)
if (ENABLE_OpenMP)
add_compile_options (-fopenmp)
add_compile_options (-fopenmp)
endif ()
# Not 100% clear why we need this. But without we get warning while
# linking with HDF5
add_link_options (-Wl,-no_compact_unwind)
elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "4.7.3")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment