Browse Source

CMake 3.0 compatibility: use AppleClang for Clang on OS X.

Different name because of different version numbers. Also we need to
stay compatible with <3.0, which defines it as "Clang" only.
pull/55/merge
Vladimír Vondruš 12 years ago
parent
commit
dfb697dd0c
  1. 2
      src/MagnumExternal/OpenGL/GL/CMakeLists.txt

2
src/MagnumExternal/OpenGL/GL/CMakeLists.txt vendored

@ -25,7 +25,7 @@
add_library(MagnumGLLoadGenObjects OBJECT gl_magnum.c)
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "(Apple)?Clang")
set_target_properties(MagnumGLLoadGenObjects PROPERTIES COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -fvisibility=hidden -DGLLoadGen_EXPORTS")
else()
set_target_properties(MagnumGLLoadGenObjects PROPERTIES COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS} -DGLLoadGen_EXPORTS")

Loading…
Cancel
Save