mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
Define Q_NO_EMIT in cmake in order to include moc compilation
This commit is contained in:
parent
95a07ee5cb
commit
2ebf37beb0
@ -255,6 +255,10 @@ if(ENABLE_GOLDMASTER)
|
|||||||
add_definitions(-DENABLE_GOLDMASTER)
|
add_definitions(-DENABLE_GOLDMASTER)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Qt defines 'emit' as macros, which conflicts with TBB definition of method with same name
|
||||||
|
add_definitions(-DQT_NO_EMIT)
|
||||||
|
|
||||||
|
|
||||||
if(APPLE_IOS)
|
if(APPLE_IOS)
|
||||||
set(CMAKE_MACOSX_RPATH 1)
|
set(CMAKE_MACOSX_RPATH 1)
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 12.0)
|
set(CMAKE_OSX_DEPLOYMENT_TARGET 12.0)
|
||||||
|
3
Global.h
3
Global.h
@ -273,9 +273,6 @@ using TLockGuardRec = std::lock_guard<std::recursive_mutex>;
|
|||||||
#define VCMI_LIB_WRAP_NAMESPACE(x) ::x
|
#define VCMI_LIB_WRAP_NAMESPACE(x) ::x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Qt defines 'emit' as macros, which conflicts with TBB definition of method with same name
|
|
||||||
#define QT_NO_EMIT
|
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------- */
|
||||||
/* VCMI standard library */
|
/* VCMI standard library */
|
||||||
/* ---------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------- */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user