Fixed warning in cmake 3.0 and above.

If I understand correctly, the COMPILE_DEFINITIONS_DEBUG property is ignored in newer versions of cmake. I fixed it by forcing to use old method.
This commit is contained in:
deve 2014-09-23 09:11:39 +02:00
parent 667245f5aa
commit 8eb51f78b4

View File

@ -3,6 +3,7 @@ project(SuperTuxKart)
set(PROJECT_VERSION "0.8.1") set(PROJECT_VERSION "0.8.1")
cmake_minimum_required(VERSION 2.8.1) cmake_minimum_required(VERSION 2.8.1)
cmake_policy(SET CMP0043 OLD)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
include(BuildTypeSTKRelease) include(BuildTypeSTKRelease)