Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't feed ICC with command-line parameters that it doesn't understand
[simgrid.git] / 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()