mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-13 05:17:13 +02:00
version check of compiler
This commit is contained in:
@ -55,7 +55,6 @@ target_compile_options(slsProjectWarnings INTERFACE
|
|||||||
-Wall
|
-Wall
|
||||||
-Wnon-virtual-dtor
|
-Wnon-virtual-dtor
|
||||||
-Woverloaded-virtual
|
-Woverloaded-virtual
|
||||||
-Wnull-dereference
|
|
||||||
-Wdouble-promotion
|
-Wdouble-promotion
|
||||||
-Wformat=2
|
-Wformat=2
|
||||||
)
|
)
|
||||||
@ -73,8 +72,13 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|||||||
target_compile_options(slsProjectWarnings INTERFACE
|
target_compile_options(slsProjectWarnings INTERFACE
|
||||||
-Wno-misleading-indentation # mostly in rapidjson remove using clang format
|
-Wno-misleading-indentation # mostly in rapidjson remove using clang format
|
||||||
-Wno-class-memaccess # also in rapidjson
|
-Wno-class-memaccess # also in rapidjson
|
||||||
-Wduplicated-cond
|
|
||||||
)
|
)
|
||||||
|
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0)
|
||||||
|
target_compile_options(slsProjectWarnings INTERFACE
|
||||||
|
-Wduplicated-cond
|
||||||
|
-Wnull-dereference )
|
||||||
|
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user