mirror of https://github.com/microsoft/vcpkg.git
[opencascade] Fix OpenCASCADE_INSTALL_PREFIX path in config (#15056)
This commit is contained in:
parent
234227c2b7
commit
3b935db358
|
|
@ -1,6 +1,6 @@
|
|||
Source: opencascade
|
||||
Version: 7.4.0
|
||||
Port-Version: 2
|
||||
Port-Version: 3
|
||||
Build-Depends: freetype
|
||||
Description: Open CASCADE Technology (OCCT) is an open-source software development platform for 3D CAD, CAM, CAE.
|
||||
Supports: !(uwp|osx|linux|arm)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/adm/templates/OpenCASCADEConfig.cmake.in b/adm/templates/OpenCASCADEConfig.cmake.in
|
||||
index 4937103b..cd35e07d 100644
|
||||
--- a/adm/templates/OpenCASCADEConfig.cmake.in
|
||||
+++ b/adm/templates/OpenCASCADEConfig.cmake.in
|
||||
@@ -23,6 +23,7 @@ set (OpenCASCADE_DEVELOPMENT_VERSION "@OCC_VERSION_DEVELOPMENT@")
|
||||
# - in Windows style: $INSTALL_DIR/cmake
|
||||
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()
|
||||
|
|
@ -10,6 +10,7 @@ vcpkg_from_github(
|
|||
fix-msvc-32bit-builds.patch
|
||||
fix-build-with-vs2017.patch
|
||||
fix-static-build.patch
|
||||
fix-install-prefix-path.patch
|
||||
)
|
||||
|
||||
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
|
|
|
|||
Loading…
Reference in New Issue