From: Martin Quinson Date: Tue, 15 Mar 2022 08:17:47 +0000 (+0100) Subject: Don't feed ICC with command-line parameters that it doesn't understand X-Git-Tag: v3.31~105 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/695464b27af9494e46e22e7af44c2cacfc8fe804 Don't feed ICC with command-line parameters that it doesn't understand --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 77a986e624..968ab559cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,7 +243,7 @@ endif() find_package (Eigen3 3.3 REQUIRED NO_MODULE) message(STATUS "Found Eigen3: ${EIGEN3_INCLUDE_DIR}") include_directories(${EIGEN3_INCLUDE_DIR}) -if ("3.3.4" EQUAL EIGEN3_VERSION_STRING) +if ("3.3.4" EQUAL EIGEN3_VERSION_STRING AND CMAKE_COMPILER_IS_GNUCC) message(STATUS "Avoid build error of Eigen3 v3.3.4 using -Wno-error=int-in-bool-context") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=int-in-bool-context") endif()