Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-20 04:49:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-20 04:49:15 +0300
commit733b736e9e790f199e6926ecf2d8c8bbdd3df27b (patch)
tree873c7e6e77d63183c36110701ae4bfe3a046afcb /CMakeLists.txt
parentef9356043ea6c093506096116bf879197224aa25 (diff)
CMake, check for clang++ compiler and disable WITH_IK_ITASC and WITH_MOD_FLUID until there supported.
possibly allows builing with Xcode4.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b2d02ce5c3a..d860d525289 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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}")