From: Greg Sjaardema Date: Thu, 13 May 2021 13:57:24 +0000 (-0600) Subject: Fix compiler detection to avoid bad mpicc match X-Git-Tag: 2.0.4~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df218c12aac0eb69a48af77eac9ace35064af75d;p=thirdparty%2Fzlib-ng.git Fix compiler detection to avoid bad mpicc match --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 7bfeba7e5..8582c2251 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,8 +134,8 @@ if(WITH_GZFILEOP) add_definitions(-DWITH_GZFILEOP) endif() -if("${CMAKE_C_COMPILER}" MATCHES "icc" OR "${CMAKE_C_COMPILER}" MATCHES "icpc" OR "${CMAKE_C_COMPILER}" MATCHES "icl") - if(CMAKE_HOST_UNIX OR APPLE) +if(CMAKE_C_COMPILER_ID MATCHES "Intel") + if(CMAKE_HOST_UNIX OR CMAKE_HOST_APPLE) set(WARNFLAGS "-w3") set(WARNFLAGS_MAINTAINER "-w3 -Wcheck -Wremarks") set(WARNFLAGS_DISABLE "")