From 16ef5140ca1dee3893be21cef116ad1dc09e4aef Mon Sep 17 00:00:00 2001 From: Trung Tran Date: Sun, 24 Feb 2019 23:23:31 -0800 Subject: 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 --- host/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host') 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) -- cgit v1.2.3