OS X build fix

This commit is contained in:
Jack Andersen 2015-11-10 21:02:46 -10:00
parent 6d3b8d3198
commit 4ee3e0f7aa
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ else(NOT GEKKO)
endif()
# For some reason, clang takes forever if glew.c is not built with -Os
if(CMAKE_BUILD_TYPE STREQUAL "Release")
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
set_source_files_properties(lib/graphicsdev/glew.c PROPERTIES COMPILE_FLAGS -Os)
endif()