vcpkg/ports/pcl/add_bigobj_option.patch
Markus Vieth 344b1d9608
[pcl] update to version 1.13.0 (#28818)
* [pcl] update to version 1.13.0

* More necessary changes

* Make requested changes

* Remove qhull patch

* Remove another patch

* Remove libusb patch

* Fix no-absolute.patch

* Fix patch

* Correct versions

* Allow static and shared deps

* Add patch for bigobj option

* Don't remove files

* Request opengl feature of vtk

* Add patch to remove problematic include

* Add patch to remove error in opennurbs code

* Add patch to disable kinfu for cuda 12

---------

Co-authored-by: Jonliu1993 <13720414433@163.com>
2023-01-30 16:41:37 -08:00

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))