From a9b8c5d9aa680049a7c007418fe852efcbd592be Mon Sep 17 00:00:00 2001 From: Christoph Sommer Date: Thu, 1 Jan 2009 20:22:29 +0000 Subject: [PATCH] Small, quick compile fixes SVN-Revision: 5825 --- CMakeLists.txt | 6 +++++- src/main.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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"), ""); } /** -- 2.11.0