From 2286d7d83b4468be1123bf32b51c3831a06fc29a Mon Sep 17 00:00:00 2001 From: NAThompson Date: Wed, 8 Jul 2020 10:20:36 -0400 Subject: [PATCH] Remove superfluous check on CMake version. --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d145a534e..deaf6dffcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,14 +88,12 @@ mark_as_advanced(ADIOS2_LIBRARY_SUFFIX ADIOS2_EXECUTABLE_SUFFIX) # Use meta-compile features if available, otherwise use specific language # features -if(CMAKE_VERSION VERSION_LESS 3.9 OR - CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Intel|Clang|AppleClang|MSVC)$") +if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Intel|Clang|AppleClang|MSVC)$") set(ADIOS2_CXX11_FEATURES cxx_auto_type cxx_nullptr) else() set(ADIOS2_CXX11_FEATURES cxx_std_11) endif() -if(CMAKE_VERSION VERSION_LESS 3.9 OR - CMAKE_C_COMPILER_ID MATCHES "^(GNU|Intel|Clang|AppleClang|MSVC)$") +if(CMAKE_C_COMPILER_ID MATCHES "^(GNU|Intel|Clang|AppleClang|MSVC)$") set(ADIOS2_C99_FEATURES c_restrict) else() set(ADIOS2_C99_FEATURES c_std_99)