From 16489f9d4b8242b5fe3da167b296bab66fb0d557 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(-) 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) -- cgit v1.2.3