mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-15 03:27:58 +08:00
[opencascade] update debug paths in *Targets-debug.cmake (#14435)
* [opencascade] replace libd with lib and bind by bin in *Targets-debug.cmake * updated to port-version 1
This commit is contained in:
parent
10c38371cb
commit
6b935b7cd3
@ -1,5 +1,6 @@
|
||||
Source: opencascade
|
||||
Version: 7.4.0
|
||||
Port-Version: 1
|
||||
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|static)
|
||||
@ -10,4 +11,4 @@ Description: Enable optional usage of freeimage
|
||||
|
||||
Feature: tbb
|
||||
Build-Depends: tbb
|
||||
Description: Enable optional usage of tbb
|
||||
Description: Enable optional usage of tbb
|
||||
|
@ -50,6 +50,23 @@ file(RENAME ${CURRENT_PACKAGES_DIR}/debug/libd ${CURRENT_PACKAGES_DIR}/debug/lib
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
# fix paths in target files
|
||||
list(APPEND TARGET_FILES
|
||||
${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEApplicationFrameworkTargets-debug.cmake
|
||||
${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADECompileDefinitionsAndFlags-debug.cmake
|
||||
${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEDataExchangeTargets-debug.cmake
|
||||
${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEFoundationClassesTargets-debug.cmake
|
||||
${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEModelingAlgorithmsTargets-debug.cmake
|
||||
${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEModelingDataTargets-debug.cmake
|
||||
${CURRENT_PACKAGES_DIR}/share/opencascade/OpenCASCADEVisualizationTargets-debug.cmake
|
||||
)
|
||||
foreach(TARGET_FILE ${TARGET_FILES})
|
||||
file(READ ${TARGET_FILE} filedata)
|
||||
string(REGEX REPLACE "libd" "lib" filedata "${filedata}")
|
||||
string(REGEX REPLACE "bind" "bin" filedata "${filedata}")
|
||||
file(WRITE ${TARGET_FILE} ${filedata})
|
||||
endforeach()
|
||||
|
||||
# the bin directory ends up with bat files that are noise, let's clean that up
|
||||
file(GLOB BATS ${CURRENT_PACKAGES_DIR}/bin/*.bat)
|
||||
file(REMOVE_RECURSE ${BATS})
|
||||
|
Loading…
x
Reference in New Issue
Block a user