vcpkg/ports/rtabmap/rtabmap-res-tool.patch
Kai Pastor c5b5b4ea11
[rtabmap] Fix platform and linkage support (#37651)
`rtabmap-res_tool` is moved to a separate port because it is a host
dependency, and actual dependencies of `rtabmap` are heavy and non
opt-out. Only minimal patching needed.

Co-authored-by: Alexander Neumann <30894796+Neumann-A@users.noreply.github.com>
2024-04-01 13:32:08 -07:00

12 lines
514 B
Diff

diff --git a/utilite/resource_generator/CMakeLists.txt b/utilite/resource_generator/CMakeLists.txt
index 82f1253..eedab31 100644
--- a/utilite/resource_generator/CMakeLists.txt
+++ b/utilite/resource_generator/CMakeLists.txt
@@ -1,5 +1,5 @@
-if (CMAKE_CROSSCOMPILING OR ANDROID OR IOS)
+if (RTABMAP_RES_TOOL)
# See this page about tools being required in the build:
# https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/CrossCompiling#using-executables-in-the-build-created-during-the-build