mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 22:27:52 +08:00
16 lines
743 B
Diff
16 lines
743 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 17020e162..132fbcedb 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -142,8 +142,9 @@ endif()
|
||
|
if(CMAKE_COMPILER_IS_MSVC)
|
||
|
add_definitions("-DBOOST_ALL_NO_LIB -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX -DPCL_ONLY_CORE_POINT_TYPES ${SSE_DEFINITIONS}")
|
||
|
|
||
|
+ string(APPEND CMAKE_CXX_FLAGS " /bigobj")
|
||
|
if("${CMAKE_CXX_FLAGS}" STREQUAL "${CMAKE_CXX_FLAGS_DEFAULT}")
|
||
|
- string(APPEND CMAKE_CXX_FLAGS " /fp:precise ${SSE_FLAGS} ${AVX_FLAGS} /bigobj")
|
||
|
+ string(APPEND CMAKE_CXX_FLAGS " /fp:precise ${SSE_FLAGS} ${AVX_FLAGS}")
|
||
|
|
||
|
# Add extra code generation/link optimizations
|
||
|
if(CMAKE_MSVC_CODE_LINK_OPTIMIZATION AND (NOT BUILD_CUDA) AND (NOT BUILD_GPU))
|