Fixed incorrect CMake variable name
This commit is contained in:
parent
9275adff81
commit
d2da219ec0
@ -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()
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user