mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 02:51:39 +08:00
e7e328cf9d
* [many ports] call vcpkg_fixup_pkgconfig() The ports generate pc files, but don't call vcpkg_fixup_pkgconfig() so that there are absolute paths in the pc files * Update port-version for armadillo and polyclipping. * Update version database. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
49 lines
1.5 KiB
CMake
49 lines
1.5 KiB
CMake
#the port uses inside the CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS, which is discouraged by vcpkg.
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO flann-lib/flann
|
|
REF 1d04523268c388dabf1c0865d69e1b638c8c7d9d
|
|
SHA512 61e322222c2daa0b9677095e5ca231cba7c305ce754ad8e659eee350111c1e04351181c3af04e45ab6e5c9edea49c7b9ec6499bb0dbc080b87af36eb11c6ef7c
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-build-error.patch
|
|
fix-dependency-hdf5.patch
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
hdf5 WITH_HDF5
|
|
cuda WITH_CUDA
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" FLANN_BUILD_STATIC)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" FLANN_BUILD_DYNAMIC)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
-DBUILD_DYNAMIC=${FLANN_BUILD_DYNAMIC}
|
|
-DBUILD_STATIC=${FLANN_BUILD_STATIC}
|
|
-DBUILD_CUDA_LIB=${WITH_CUDA}
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_TESTS=OFF
|
|
-DBUILD_DOC=OFF
|
|
-DBUILD_PYTHON_BINDINGS=OFF
|
|
-DBUILD_MATLAB_BINDINGS=OFF
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
|
-DHDF5_NO_FIND_PACKAGE_CONFIG_FILE=ON
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/flann RENAME copyright)
|
|
|
|
vcpkg_fixup_pkgconfig()
|