Clean CompilerChecksAndSetups.cmake

CMAKE_CXX_COMPILER_VERSION are always greater than  3.9
This commit is contained in:
mosfet80
2024-02-10 21:11:22 +01:00
committed by Chris Hennes
parent e6bbc7f049
commit b102c5968f

View File

@@ -89,9 +89,7 @@ macro(CompilerChecksAndSetups)
endif()
add_definitions(-DGL_SILENCE_DEPRECATION)
elseif (UNIX)
if (NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.9)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-undefined-var-template")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-undefined-var-template")
endif()
# older boost.preprocessor turn off variadics for clang