Fixed incorrect CMake variable name
This commit is contained in:
parent
9275adff81
commit
d2da219ec0
@ -6,7 +6,7 @@ if (WIN32)
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUC)
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
foreach(flags CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG)
|
foreach(flags CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG)
|
||||||
string(REPLACE "-O3" "-O2" ${flags} "${${flags}}")
|
string(REPLACE "-O3" "-O2" ${flags} "${${flags}}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
@ -11,7 +11,7 @@ if(NOT APPLE)
|
|||||||
unset(ENABLE_PRECOMPILED_HEADERS CACHE)
|
unset(ENABLE_PRECOMPILED_HEADERS CACHE)
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||||
set(CMAKE_COMPILER_IS_GNUC 1)
|
set(CMAKE_COMPILER_IS_GNUCC 1)
|
||||||
unset(ENABLE_PRECOMPILED_HEADERS CACHE)
|
unset(ENABLE_PRECOMPILED_HEADERS CACHE)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user