1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-19 21:10:12 +02:00

Define Q_NO_EMIT in cmake in order to include moc compilation

This commit is contained in:
Ivan Savenko 2024-12-21 19:24:26 +00:00
parent 95a07ee5cb
commit 2ebf37beb0
2 changed files with 4 additions and 3 deletions

View File

@ -255,6 +255,10 @@ 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)

View File

@ -273,9 +273,6 @@ using TLockGuardRec = std::lock_guard<std::recursive_mutex>;
#define VCMI_LIB_WRAP_NAMESPACE(x) ::x
#endif
// Qt defines 'emit' as macros, which conflicts with TBB definition of method with same name
#define QT_NO_EMIT
/* ---------------------------------------------------------------------------- */
/* VCMI standard library */
/* ---------------------------------------------------------------------------- */