diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c8022b14..309a784e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -227,7 +227,6 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW) string(TOUPPER "${CMAKE_BUILD_TYPE}" ZG_BUILD_TYPE) - add_definitions("-DDATADIR=${INSTALL_DIR_DATA}") SET(CMAKE_CXX_FLAGS_{ZG_BUILD_TYPE} "${CMAKE_CXX_FLAGS_${ZG_BUILD_TYPE}}") # We do some funky character escaping to get the right stuff written out to @@ -328,6 +327,8 @@ IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") MESSAGE(WARNING ">> CLANG is NOT currently compatible as it does not support the following essential GCC compiler settings: -frounding-math -fsignaling-nans") ENDIF() +# FIXME: This should output all defines. For example, DATADIR is defined in +# the glest_game source and sharedlib cmake file as well get_directory_property( DirDefs DIRECTORY ${CMAKE_SOURCE_DIR} COMPILE_DEFINITIONS ) foreach( d ${DirDefs} ) message( STATUS "=====> Found Define: " ${d} )