From 141dbedeac8a19d8ea3f70f6346f36dbf48aade0 Mon Sep 17 00:00:00 2001 From: Jeff Bolz Date: Wed, 29 Jan 2020 21:39:13 -0600 Subject: [PATCH] Use NOT ... VERSION_LESS instead of VERSION_GREATER_EQUAL --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5f9f8b7..24e89505 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU") -Wunused-parameter -Wunused-value -Wunused-variable -Wunused-but-set-parameter -Wunused-but-set-variable -fno-exceptions) add_compile_options(-Wno-reorder) # disable this from -Wall, since it happens all over. add_compile_options(-fno-rtti) - if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "9.0.0") + if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0.0") add_compile_options(-Werror=deprecated-copy) endif() elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")