mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 23:47:51 +08:00
69e86fd201
* [lz4, flann] port patches from #5169 * [lz4] use vcpkg_fixup_cmake_targets * [flann] improve target handling * [lz4] remove unnecessary debug message * [openmvg] many many fixes to build it on windows * [pcl] use official FLANN cmake config file instead of custom module * [pcl] fix patch for flann targets * [pcl] Bump CONTROL version
38 lines
1.2 KiB
CMake
38 lines
1.2 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
#the port uses inside the CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS, which is discouraged by vcpkg.
|
|
#Since it's its author choice, we should not disallow it, but unfortunately looks like it's broken, so we block it anyway...
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO mariusmuja/flann
|
|
REF aa40936816f4feaa714d3a09f92a495da017d95c
|
|
SHA512 f6f2e75f4ce4bc4bc4cc1feab27fe683b8a5f9f5dcea35de4df5136a683b5dff5e68776008821a16ccf1a52a9807cb053c0062deba4fe121948248acd52864ef
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix_targets.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-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(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/flann)
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/flann/COPYING ${CURRENT_PACKAGES_DIR}/share/flann/copyright)
|