pineapple/externals/vcpkg/ports/rtabmap/0001-add-bigobj-for-msvc.patch

25 lines
631 B
Diff
Raw Normal View History

2022-07-23 03:01:36 +02:00
From 37a2b1fe682bcea48cb944762853bec404c9e937 Mon Sep 17 00:00:00 2001
From: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
Date: Sun, 6 Feb 2022 12:29:02 -0800
Subject: [PATCH] add bigobj for msvc
---
CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5cdae617..ed829a46 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,6 +106,7 @@ if(MSVC)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP${N}")
endif()
endif()
+ add_compile_options("/bigobj")
endif()
# [Eclipse] Automatic Discovery of Include directories (Optional, but handy)
--
2.35.1.windows.2