Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use the right comparison operator for version numbers.
[simgrid.git] / CMakeLists.txt
index 666520d..ac86729 100644 (file)
@@ -247,7 +247,7 @@ if (Eigen3_FOUND)
   set(SIMGRID_HAVE_EIGEN3 1)
   message(STATUS "Found Eigen3: ${EIGEN3_INCLUDE_DIR}")
   include_directories(${EIGEN3_INCLUDE_DIR})
-  if ("3.3.4" EQUAL EIGEN3_VERSION_STRING AND CMAKE_COMPILER_IS_GNUCC)
+  if ("3.3.4" VERSION_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()