vcpkg/ports/ccd/portfile.cmake
Akash d12cbb40ed
[ompl] Fix linking using ${OMPL_LIBRARIES} (#18908)
* Fix _IMPORT_PREFIX

* Export cmake targets file

* Fix config

* Make separate omplapp port

* Run x-add-version for omplapp

* Fix versions

* Fix omplapp static builds

* Run x-add-version

* Update ports/omplapp/portfile.cmake

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>

* Update ports/omplapp/portfile.cmake

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>

* Put files in quotes

* Run x-add-version

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
2021-07-22 15:00:49 -07:00

34 lines
972 B
CMake

if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
set(STATIC_PATCH fix-static.patch)
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO danfis/libccd
REF v2.1
SHA512 ff037d9c4df50f09600cf9b3514b259b2850ff43f74817853f5665d22812891168f70bd3cc3969b2c9e3c706f6254991a65421476349607fbd04d894b217456d
HEAD_REF master
# Backport https://github.com/danfis/libccd/pull/70 to support Emscripten
PATCHES
"support-emscripten.patch"
${STATIC_PATCH}
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_TESTING=OFF
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/ccd)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/doc)
file(INSTALL ${SOURCE_PATH}/BSD-LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)