From 033de17565249963cb54c27ccaff40ffd531b1ee Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 1 Feb 2021 01:51:38 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c0345d9b..4fefe5f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,14 +80,10 @@ message(STATUS "SqMod: Using C++${CPP_STD_NUMBER} standard.") # Default to the identified standard if(CMAKE_VERSION VERSION_LESS "3.1") - if(${CMAKE_CXX_COMPILER_ID} MATCHES "(GNU)+") - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STD_COMPILER_FLAG}") - endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STD_COMPILER_FLAG}") else() # Apparently the above does not work with cmake from on debian 8 - if(${CMAKE_CXX_COMPILER_ID} MATCHES "(GNU)+") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STD_COMPILER_FLAG}") - endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CPP_STD_COMPILER_FLAG}") # F* you too Debian. What can I say. if(CMAKE_VERSION VERSION_LESS "3.8.0" AND CPP_STD_NUMBER LESS 17) # Try the standard method as well