From: Christoph Sommer Date: Thu, 1 Jan 2009 20:22:29 +0000 (+0000) Subject: Small, quick compile fixes X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a9b8c5d9aa680049a7c007418fe852efcbd592be;p=supertux.git Small, quick compile fixes SVN-Revision: 5825 --- 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 diff --git a/src/main.cpp b/src/main.cpp index 8a8dc7c66..3fa4158ef 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -234,7 +234,7 @@ static void print_usage(const char* argv0) " --record-demo FILE LEVEL Record a demo to FILE\n" " --play-demo FILE LEVEL Play a recorded demo\n" " -s, --debug-scripts Enable script debugger.\n" - "\n")); + "%s\n"), ""); } /**