Skip to content
Snippets Groups Projects
Commit 6ab2859b authored by t.knopff's avatar t.knopff
Browse files

Add compiler flag in 3rdparty cmake file to suppress warning on newer clang compilers

parent 56cac527
No related branches found
No related tags found
1 merge request!40Add compiler flag in 3rdparty cmake file to suppress warning on newer clang compilers
Pipeline #35269 passed
...@@ -19,6 +19,13 @@ add_definitions(-DWARNINGMSG) ...@@ -19,6 +19,13 @@ add_definitions(-DWARNINGMSG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMATH_NO_PLUGIN_MANAGER -DHAS_MINUIT2 -DR__HAS_MATHMORE") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMATH_NO_PLUGIN_MANAGER -DHAS_MINUIT2 -DR__HAS_MATHMORE")
if(NOT WIN32) if(NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
# The following code suppresses a warning in
# Fit/3rdparty/RootMinimizers/mathcore/Math/GSLRngROOTWrapper.h
# which is issued in newer versions of clang.
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-dangling-gsl")
endif()
else() else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4244 /wd4267")
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment