Fixed incorrect CMake variable name

This commit is contained in:
Andrey Kamaev 2012-05-15 07:43:00 +00:00
parent 9275adff81
commit d2da219ec0
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ if (WIN32)
endforeach()
endif()
if(CMAKE_COMPILER_IS_GNUC)
if(CMAKE_COMPILER_IS_GNUCC)
foreach(flags CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG)
string(REPLACE "-O3" "-O2" ${flags} "${${flags}}")
endforeach()

View File

@ -11,7 +11,7 @@ if(NOT APPLE)
unset(ENABLE_PRECOMPILED_HEADERS CACHE)
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
set(CMAKE_COMPILER_IS_GNUC 1)
set(CMAKE_COMPILER_IS_GNUCC 1)
unset(ENABLE_PRECOMPILED_HEADERS CACHE)
endif()
endif()