Fix for r51447 (my CMake 2.8.9 did not like it, looks like with quotes it suites...
authorBastien Montagne <montagne29@wanadoo.fr>
Sat, 20 Oct 2012 19:36:08 +0000 (19:36 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Sat, 20 Oct 2012 19:36:08 +0000 (19:36 +0000)
CMakeLists.txt

index 058da2d..c4d0dda 100644 (file)
@@ -1863,7 +1863,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
        ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_NO_DIV_BY_ZERO -Wno-div-by-zero)
 
        # gcc 4.2 gives annoying warnings on every file with this
-       if (${CMAKE_C_COMPILER_VERSION} VERSION_GREATER "4.2")
+       if ("${CMAKE_C_COMPILER_VERSION}" VERSION_GREATER "4.2")
                ADD_CHECK_C_COMPILER_FLAG(C_WARNINGS C_WARN_UNINITIALIZED -Wuninitialized)
        endif()
 
@@ -1883,7 +1883,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
        ADD_CHECK_CXX_COMPILER_FLAG(CXX_WARNINGS CXX_WARN_NO_DIV_BY_ZERO -Wno-div-by-zero)
 
        # gcc 4.2 gives annoying warnings on every file with this
-       if (${CMAKE_C_COMPILER_VERSION} VERSION_GREATER "4.2")
+       if ("${CMAKE_C_COMPILER_VERSION}" VERSION_GREATER "4.2")
                ADD_CHECK_CXX_COMPILER_FLAG(CXX_WARNINGS CXX_WARN_UNINITIALIZED -Wuninitialized)
        endif()