X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=CMakeLists.txt;h=002bfc4421c24d23545ce915bdbca60a6a425055;hb=38ea8c3ead1a5b679621363b01dfd54c7b42cf75;hp=65f043af95dae68a52e4cc6057debc088e94686c;hpb=dd8e93cdc193d69bc7c3b33964b2b98fbfff0eee;p=supertux.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 65f043af9..002bfc442 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,8 +39,12 @@ PROJECT(SUPERTUX) ### CMake configuration -# allow building with old CMake. Use some bundled modules as a fallback +# allow building with old CMake. Set compatibility options. Use some bundled modules as a fallback CMAKE_MINIMUM_REQUIRED(VERSION 2.4) +IF(COMMAND cmake_policy) + CMAKE_POLICY(SET CMP0003 NEW) +ENDIF(COMMAND cmake_policy) + SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${SUPERTUX_SOURCE_DIR}/mk/cmake) # move some config clutter to the advanced section