-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.
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)