mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Define Q_NO_EMIT only in editor
This commit is contained in:
parent
814234017d
commit
fdc4608e1e
@ -255,10 +255,6 @@ if(ENABLE_GOLDMASTER)
|
||||
add_definitions(-DENABLE_GOLDMASTER)
|
||||
endif()
|
||||
|
||||
# Qt defines 'emit' as macros, which conflicts with TBB definition of method with same name
|
||||
add_definitions(-DQT_NO_EMIT)
|
||||
|
||||
|
||||
if(APPLE_IOS)
|
||||
set(CMAKE_MACOSX_RPATH 1)
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 12.0)
|
||||
|
@ -223,6 +223,9 @@ if(APPLE)
|
||||
set_property(GLOBAL PROPERTY AUTOGEN_TARGETS_FOLDER vcmieditor)
|
||||
endif()
|
||||
|
||||
# Qt defines 'emit' as macros, which conflicts with TBB definition of method with same name
|
||||
target_compile_definitions(vcmieditor PRIVATE QT_NO_EMIT)
|
||||
|
||||
if(ENABLE_STATIC_LIBS OR NOT (ENABLE_EDITOR AND ENABLE_LAUNCHER))
|
||||
target_compile_definitions(vcmieditor PRIVATE VCMIQT_STATIC)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user