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
path: root/src
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-03-04 13:45:37 +0300
committerRobert Adam <dev@robert-adam.de>2021-03-06 20:57:22 +0300
commitb63adf6e860ff12a85e339d2e0499ae14f574c49 (patch)
tree82b5c6e2bfe18940453a8e37bea7334bd88fd14e /src
parent678e872c2124ec5175106616881f7df41be66647 (diff)
BUILD(cmake): Make unity builds possible
This commit explicitly excludes certain targets from being built in a unity build (or rather they continue to get built normally) as they cause compilation errors in these kind of builds.
Diffstat (limited to 'src')
-rw-r--r--src/mumble/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mumble/CMakeLists.txt b/src/mumble/CMakeLists.txt
index ced962c4b..949dc6154 100644
--- a/src/mumble/CMakeLists.txt
+++ b/src/mumble/CMakeLists.txt
@@ -521,6 +521,9 @@ if(bundled-opus)
# Disable all warnings that the Opus code may emit
disable_warnings_for_all_targets_in("${3RDPARTY_DIR}/opus")
+ # Opus doesn't work in unity builds
+ set_target_properties(opus PROPERTIES UNITY_BUILD FALSE)
+
add_dependencies(mumble opus)
target_include_directories(mumble PRIVATE "${3RDPARTY_DIR}/opus/include")