mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Fix building with cmake older than 3.12
This commit is contained in:
parent
bc1ba2135d
commit
2a492261e1
@ -169,7 +169,8 @@ set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH NO)
|
||||
set(CMAKE_XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH[variant=Debug] YES)
|
||||
|
||||
if(ENABLE_SINGLE_APP_BUILD)
|
||||
add_compile_definitions(SINGLE_PROCESS_APP=1)
|
||||
add_definitions(-DSINGLE_PROCESS_APP=1)
|
||||
#add_compile_definitions(SINGLE_PROCESS_APP=1) # requires cmake 3.12
|
||||
endif()
|
||||
|
||||
if(APPLE_IOS)
|
||||
@ -276,7 +277,8 @@ if(NOT WIN32 AND NOT APPLE_IOS)
|
||||
endif()
|
||||
|
||||
if(ENABLE_LUA)
|
||||
add_compile_definitions(SCRIPTING_ENABLED=1)
|
||||
add_definitions(-DSCRIPTING_ENABLED=1)
|
||||
#add_compile_definitions(SCRIPTING_ENABLED=1) # requires cmake 3.12
|
||||
endif()
|
||||
|
||||
############################################
|
||||
|
Loading…
Reference in New Issue
Block a user