Commit d2da219e authored by Andrey Kamaev's avatar Andrey Kamaev

Fixed incorrect CMake variable name

parent 9275adff
...@@ -6,7 +6,7 @@ if (WIN32) ...@@ -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) ...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment