CMake, check for clang++ compiler and disable WITH_IK_ITASC and WITH_MOD_FLUID until...
authorCampbell Barton <ideasman42@gmail.com>
Sun, 20 Mar 2011 01:49:15 +0000 (01:49 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 20 Mar 2011 01:49:15 +0000 (01:49 +0000)
possibly allows builing with Xcode4.

CMakeLists.txt

index b2d02ce..d860d52 100644 (file)
@@ -1065,6 +1065,13 @@ elseif(CMAKE_C_COMPILER_ID MATCHES "Intel")
 
 endif()
 
+if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+       if(WITH_IK_ITASC OR WITH_MOD_FLUID)
+               message(WARNING "Using Clang as CXX compiler: disabling WITH_IK_ITASC and WITH_MOD_FLUID, these features will be missing.")
+               set(WITH_IK_ITASC OFF)
+               set(WITH_MOD_FLUID OFF)
+       endif()
+endif()
 
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${PLATFORM_CFLAGS} ${C_WARNINGS}")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PLATFORM_CFLAGS} ${CXX_WARNINGS}")