From b63adf6e860ff12a85e339d2e0499ae14f574c49 Mon Sep 17 00:00:00 2001 From: Robert Adam Date: Thu, 4 Mar 2021 11:45:37 +0100 Subject: 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. --- overlay/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'overlay/CMakeLists.txt') diff --git a/overlay/CMakeLists.txt b/overlay/CMakeLists.txt index 733f7e450..0adc1a327 100644 --- a/overlay/CMakeLists.txt +++ b/overlay/CMakeLists.txt @@ -40,6 +40,9 @@ remove_definitions("-DUNICODE") add_library(overlay SHARED) +# The overlay doesn't work well with unity builds +set_target_properties(overlay PROPERTIES UNITY_BUILD FALSE) + find_program(FXC "fxc" DOC "Effect-Compiler tool") if(NOT FXC) message(FATAL_ERROR "Effect-Compiler tool not found!") -- cgit v1.2.3