From 489526477c2e39060f8136fa48de39d91c4c75ed Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 13 Mar 2012 22:27:21 +0000 Subject: print warning when release/datafiles/locale is missing when building with cmake (git-svn causes this). --- CMakeLists.txt | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') 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 -- cgit v1.2.3