diff options
| author | markdegreef <mgreef@gmail.com> | 2019-03-05 19:44:01 +0100 |
|---|---|---|
| committer | Phil Christensen <philc@microsoft.com> | 2019-03-05 10:44:01 -0800 |
| commit | 140e2733f7fd2e6db5fe57834db3bdb3485d8236 (patch) | |
| tree | 2332dfeceb6dddc24ef533829f4a51cbb40b4d29 /ports/urdfdom | |
| parent | b9d7fa1a1cf1dee3467640405f4c985e20571400 (diff) | |
| download | vcpkg-140e2733f7fd2e6db5fe57834db3bdb3485d8236.tar.gz vcpkg-140e2733f7fd2e6db5fe57834db3bdb3485d8236.zip | |
Fix linux build of urdfdom (#5538)
Remove empty directories and set correct cmake target path
Machine setup: ubuntu 18.10 x64 gcc version 8.2.0
The steps to reproduce: ./vcpkg install urdfdom:x64-linux
Diffstat (limited to 'ports/urdfdom')
| -rw-r--r-- | ports/urdfdom/portfile.cmake | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ports/urdfdom/portfile.cmake b/ports/urdfdom/portfile.cmake index bf0568f8c..530b586e5 100644 --- a/ports/urdfdom/portfile.cmake +++ b/ports/urdfdom/portfile.cmake @@ -28,7 +28,13 @@ vcpkg_configure_cmake( vcpkg_install_cmake() vcpkg_copy_pdbs() -vcpkg_fixup_cmake_targets(CONFIG_PATH "CMake") +if(EXISTS ${CURRENT_PACKAGES_DIR}/CMake) + vcpkg_fixup_cmake_targets(CONFIG_PATH "CMake" TARGET_PATH share/urdfdom) +else() + vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/urdfdom/cmake" TARGET_PATH share/urdfdom) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/urdfdom) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/urdfdom) +endif() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin) |
