aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2019-02-24 23:23:31 -0800
committerMartin Braun <martin.braun@ettus.com>2019-02-25 15:20:47 -0800
commit16489f9d4b8242b5fe3da167b296bab66fb0d557 (patch)
treeb9f2e23ba4bd38fc0349dd517a85a6a0b7b0d881
parent692ddc71b17196487dcad982836e074cab9a0f25 (diff)
downloaduhd-16489f9d4b8242b5fe3da167b296bab66fb0d557.tar.gz
uhd-16489f9d4b8242b5fe3da167b296bab66fb0d557.tar.bz2
uhd-16489f9d4b8242b5fe3da167b296bab66fb0d557.zip
lib: cmake: Fix MSVC options (add /bigobj)
MP and bigobj should be at compile options level instead of compile_flags(which are at target properties level). We have been setting these options incorrectly. They are currently not applied to any project. Signed-off-by: Trung Tran <trung.tran@ettus.com>
-rw-r--r--host/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt
index 092c2348f..37e9edadb 100644
--- a/host/CMakeLists.txt
+++ b/host/CMakeLists.txt
@@ -268,7 +268,7 @@ if(MSVC)
-D_WINSOCK_DEPRECATED_NO_WARNINGS
)
# multi-threaded build and increases the number of addressable sections in an .obj file.
- set (COMPILE_FLAGS ${COMPILE_FLAGS} /MP /bigobj)
+ add_compile_options(/MP /bigobj)
endif(MSVC)
if(CYGWIN)