Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mumble/CMakeLists.txt')
-rw-r--r--src/mumble/CMakeLists.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mumble/CMakeLists.txt b/src/mumble/CMakeLists.txt
index 949dc6154..18f861cfd 100644
--- a/src/mumble/CMakeLists.txt
+++ b/src/mumble/CMakeLists.txt
@@ -402,6 +402,12 @@ if(WIN32)
"${CMAKE_SOURCE_DIR}/overlay/ods.cpp"
)
+ # WinGUIDs.cpp includes initguid.h which causes a macro definition in guiddef.h to be
+ # chaged in such a way that subsequent usages break (redefinition errors).
+ # Thus we must not package this source file in a unity build allowing other files
+ # to include plain guiddef.h without having to worry about side-effects.
+ set_source_files_properties("WinGUIDs.cpp" PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE)
+
find_pkg(Boost
COMPONENTS
system
@@ -983,3 +989,18 @@ if(wasapi)
set_property(TARGET mumble APPEND_STRING PROPERTY LINK_FLAGS " /DELAYLOAD:avrt.dll")
endif()
endif()
+
+if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0" AND APPLE)
+ # Prevent objective C files from being included in unity builds as that causes issues
+ set_source_files_properties(
+ "AppNap.mm"
+ "GlobalShortcut_macx.mm"
+ "Log_macx.mm"
+ "os_macx.mm"
+ "TextToSpeech_macx.mm"
+ "Overlay_macx.mm"
+ "CoreAudio.mm"
+ PROPERTIES
+ SKIP_UNITY_BUILD_INCLUSION TRUE
+ )
+endif()