aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrung Tran <trung.tran@ettus.com>2019-02-24 23:23:31 -0800
committerMichael West <michael.west@ettus.com>2019-03-05 10:29:00 -0800
commit16ef5140ca1dee3893be21cef116ad1dc09e4aef (patch)
tree2494303893616bdb66978d64c74909293c586790
parentcb86c45895633803056fcc0fff95e2d6e9a0f1e7 (diff)
downloaduhd-16ef5140ca1dee3893be21cef116ad1dc09e4aef.tar.gz
uhd-16ef5140ca1dee3893be21cef116ad1dc09e4aef.tar.bz2
uhd-16ef5140ca1dee3893be21cef116ad1dc09e4aef.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 3ae6fbffb..f87de3c73 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)