diff options
author | Robert Adam <dev@robert-adam.de> | 2021-03-04 13:45:37 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2021-03-06 20:57:22 +0300 |
commit | b63adf6e860ff12a85e339d2e0499ae14f574c49 (patch) | |
tree | 82b5c6e2bfe18940453a8e37bea7334bd88fd14e /overlay/CMakeLists.txt | |
parent | 678e872c2124ec5175106616881f7df41be66647 (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 'overlay/CMakeLists.txt')
-rw-r--r-- | overlay/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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!") |