Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't feed ICC with command-line parameters that it doesn't understand
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 15 Mar 2022 08:17:47 +0000 (09:17 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 15 Mar 2022 08:17:57 +0000 (09:17 +0100)
CMakeLists.txt

index 77a986e..968ab55 100644 (file)
@@ -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()