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>2012-03-14 02:27:21 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-14 02:27:21 +0400
commit489526477c2e39060f8136fa48de39d91c4c75ed (patch)
tree3f080ecb0c86fcd31649aebddb670d755b12f33b /CMakeLists.txt
parent08f17b2a53dce465d25bb625e92ac33ad0eb29a0 (diff)
print warning when release/datafiles/locale is missing when building with cmake (git-svn causes this).
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2bda4b9f133..0c1130ac1aa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -292,6 +292,7 @@ if(APPLE)
option(WITH_LIBS10.5 "Use 10.5 libs (needed for 64bit builds)" OFF)
endif()
+
#-----------------------------------------------------------------------------
# Check for conflicting/unsupported configurations
@@ -351,7 +352,14 @@ if(WITH_CYCLES OR WITH_CARVE)
set(WITH_BOOST ON)
endif()
-TEST_SSE_SUPPORT(COMPILER_SSE_FLAG COMPILER_SSE2_FLAG)
+if(WITH_INTERNATIONAL)
+ if(NOT EXISTS "${CMAKE_SOURCE_DIR}/release/datafiles/locale")
+ message(WARNING "Translation path '${CMAKE_SOURCE_DIR}/release/datafiles/locale' is missing, "
+ "This is an 'svn external', which are known not to work with bridges to other version "
+ "control systems, disabling 'WITH_INTERNATIONAL'.")
+ set(WITH_INTERNATIONAL OFF)
+ endif()
+endif()
# don't store paths to libs for portable distrobution
if(WITH_INSTALL_PORTABLE)
@@ -362,6 +370,8 @@ if(WITH_GHOST_SDL OR WITH_HEADLESS)
set(WITH_GHOST_XDND OFF)
endif()
+TEST_SSE_SUPPORT(COMPILER_SSE_FLAG COMPILER_SSE2_FLAG)
+
#-----------------------------------------------------------------------------
# Initialize un-cached vars, avoid unused warning