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
path: root/CMake
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-06 01:57:34 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-09-06 01:57:34 +0400
commitaf42ff6aa2e5c840f5247efae868bdb563f7e45f (patch)
tree9cd6499fecb505feee9fa61451b6a3ec23d11359 /CMake
parent3f9d32783adf96a2247d5c20a212bef4765f0248 (diff)
Fix: compiling with cmake 2.4 didn't work anymore due to a
compatibility fix for cmake 2.6.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/macros.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMake/macros.cmake b/CMake/macros.cmake
index e3dd46eb5ea..95799a2c1fd 100644
--- a/CMake/macros.cmake
+++ b/CMake/macros.cmake
@@ -39,7 +39,9 @@ ENDMACRO(BLENDERLIB)
MACRO(SETUP_LIBDIRS)
# see "cmake --help-policy CMP0003"
- CMAKE_POLICY(SET CMP0003 NEW)
+ if(COMMAND cmake_policy)
+ CMAKE_POLICY(SET CMP0003 NEW)
+ endif(COMMAND cmake_policy)
LINK_DIRECTORIES(${PYTHON_LIBPATH} ${SDL_LIBPATH} ${JPEG_LIBPATH} ${PNG_LIBPATH} ${ZLIB_LIBPATH} ${ICONV_LIBPATH} ${OPENEXR_LIBPATH} ${QUICKTIME_LIBPATH} ${FFMPEG_LIBPATH})
IF(WITH_INTERNATIONAL)
LINK_DIRECTORIES(${GETTEXT_LIBPATH})