aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/opencascade/fix-install-prefix-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/opencascade/fix-install-prefix-path.patch')
-rw-r--r--vcpkg/ports/opencascade/fix-install-prefix-path.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/opencascade/fix-install-prefix-path.patch b/vcpkg/ports/opencascade/fix-install-prefix-path.patch
new file mode 100644
index 0000000..ccc5598
--- /dev/null
+++ b/vcpkg/ports/opencascade/fix-install-prefix-path.patch
@@ -0,0 +1,12 @@
+diff --git a/adm/templates/OpenCASCADEConfig.cmake.in b/adm/templates/OpenCASCADEConfig.cmake.in
+index e391ddfe8e..c926c499ac 100644
+--- a/adm/templates/OpenCASCADEConfig.cmake.in
++++ b/adm/templates/OpenCASCADEConfig.cmake.in
+@@ -24,6 +24,7 @@ set (OpenCASCADE_DEVELOPMENT_VERSION "@OCC_VERSION_DEVELOPMENT@")
+ # - in Android style: $INSTALL_DIR/libs/$CMAKE_ANDROID_ARCH_ABI/cmake/opencascade-<version>
+ get_filename_component (OpenCASCADE_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
+ get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
++get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
+ if (OpenCASCADE_INSTALL_PREFIX MATCHES "/cmake$")
+ get_filename_component (OpenCASCADE_INSTALL_PREFIX "${OpenCASCADE_INSTALL_PREFIX}" PATH)
+ endif()