mirror of
https://github.com/glest/glest-source.git
synced 2025-02-23 11:15:02 +01:00
cmake:narrow scope of DATADIR
This will be moved to the data repo cmake
This commit is contained in:
parent
c67286636f
commit
e936e95abc
@ -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} )
|
||||
|
Loading…
x
Reference in New Issue
Block a user