mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 06:08:03 +08:00
[ocoros-kdl] Fix the CMake config file (#12794)
* Adding fix. * bump version. * Use string replacement. * Update CONTROL * Update portfile.cmake Co-authored-by: Lily <47812810+LilyWangL@users.noreply.github.com>
This commit is contained in:
parent
fbb5131bbc
commit
e507b6b7b2
@ -1,5 +1,6 @@
|
||||
Source: orocos-kdl
|
||||
Version: 1.4-2
|
||||
Version: 1.4
|
||||
Port-Version: 3
|
||||
Homepage: https://github.com/orocos/orocos_kinematics_dynamics
|
||||
Description: Kinematics and Dynamics Library
|
||||
Build-Depends: eigen3
|
||||
|
@ -1,5 +1,3 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO orocos/orocos_kinematics_dynamics
|
||||
@ -20,6 +18,11 @@ vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/orocos_kdl/cmake TARGET_PATH share/orocos_kdl)
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/orocos_kdl/orocos_kdl-config.cmake _contents)
|
||||
string(REPLACE "\${CMAKE_CURRENT_LIST_DIR}/../../.." "\${CMAKE_CURRENT_LIST_DIR}/../.." _contents "${_contents}")
|
||||
string(REPLACE "\${_IMPORT_PREFIX}" "\${CMAKE_CURRENT_LIST_DIR}/../.." _contents "${_contents}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/orocos_kdl/orocos_kdl-config.cmake "${_contents}")
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
${CURRENT_PACKAGES_DIR}/debug/include
|
||||
${CURRENT_PACKAGES_DIR}/debug/share
|
||||
|
Loading…
x
Reference in New Issue
Block a user