Commit cad2b926 authored by gsell's avatar gsell
Browse files

linker warnings on macOS/Clang fixed

parent cf771f18
......@@ -68,11 +68,14 @@ elseif (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
add_compile_options (-Warray-bounds)
# Increase template depth for boost
add_compile_options (-ftemplate-depth=1024)
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)
endif ()
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