Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
another try to fix the compilation on travis
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 27 Aug 2015 21:03:25 +0000 (23:03 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 27 Aug 2015 21:06:33 +0000 (23:06 +0200)
-if (CMAKE_COMPILER_IS_GNUCC)
+if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")

The worse is that this is not a stupid attempt. According to
http://www.cmake.org/pipermail/cmake/2013-October/056081.html , CMake
2.8.2 learned about "Clang", so only versions older than that would
think the compiler is "GNU"...

Cmake is really depressive.

CMakeLists.txt

index 5194064..c3a7785 100644 (file)
@@ -84,7 +84,7 @@ if ((NOT DEFINED enable_smpi OR enable_smpi) AND NOT APPLE) # smpi is enabled by
   enable_language(Fortran OPTIONAL)
 endif()
 
-if (CMAKE_COMPILER_IS_GNUCC)
+if(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
   if(COMPILER_C_VERSION_MAJOR_MINOR STRGREATER "4.8")
     set (CMAKE_AR gcc-ar)
     set (CMAKE_RANLIB gcc-ranlib)