diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-06 01:57:34 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-09-06 01:57:34 +0400 |
commit | af42ff6aa2e5c840f5247efae868bdb563f7e45f (patch) | |
tree | 9cd6499fecb505feee9fa61451b6a3ec23d11359 | |
parent | 3f9d32783adf96a2247d5c20a212bef4765f0248 (diff) |
Fix: compiling with cmake 2.4 didn't work anymore due to a
compatibility fix for cmake 2.6.
-rw-r--r-- | CMake/macros.cmake | 4 |
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}) |