2017-06-12 05:26:22 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-06-17 11:05:52 +08:00
|
|
|
|
2019-05-19 13:58:03 +08:00
|
|
|
#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)
|
|
|
|
|
2017-06-17 11:05:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mariusmuja/flann
|
2019-05-19 13:58:03 +08:00
|
|
|
REF aa40936816f4feaa714d3a09f92a495da017d95c
|
|
|
|
SHA512 f6f2e75f4ce4bc4bc4cc1feab27fe683b8a5f9f5dcea35de4df5136a683b5dff5e68776008821a16ccf1a52a9807cb053c0062deba4fe121948248acd52864ef
|
2017-06-17 12:43:00 +08:00
|
|
|
HEAD_REF master
|
2017-06-17 12:09:44 +08:00
|
|
|
PATCHES
|
2019-05-19 13:58:03 +08:00
|
|
|
fix_targets.patch
|
2017-06-16 22:23:37 +08:00
|
|
|
)
|
|
|
|
|
2017-06-12 05:26:22 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-06-17 12:43:00 +08:00
|
|
|
PREFER_NINJA
|
2017-06-16 22:23:37 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_EXAMPLES=OFF
|
2019-03-15 05:31:23 +08:00
|
|
|
-DBUILD_TESTS=OFF
|
2017-06-16 22:23:37 +08:00
|
|
|
-DBUILD_DOC=OFF
|
|
|
|
-DBUILD_PYTHON_BINDINGS=OFF
|
|
|
|
-DBUILD_MATLAB_BINDINGS=OFF
|
2019-05-19 13:58:03 +08:00
|
|
|
-DCMAKE_DEBUG_POSTFIX=d
|
2017-08-12 06:25:45 +08:00
|
|
|
-DHDF5_NO_FIND_PACKAGE_CONFIG_FILE=ON
|
2017-06-12 05:26:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
2019-05-19 13:58:03 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
2017-06-12 05:26:22 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2017-06-16 15:52:59 +08:00
|
|
|
|
2017-06-12 05:26:22 +08:00
|
|
|
# Handle copyright
|
2017-06-17 11:05:52 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/flann)
|
2017-06-16 15:52:59 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/flann/COPYING ${CURRENT_PACKAGES_DIR}/share/flann/copyright)
|