2018-08-01 20:40:32 +03:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO LASzip/LASzip
|
2024-04-19 02:41:45 +03:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 163204a4d0bb4b4371a1a63eb8ba9477dc504d7e171ec3d75c3120ace7ab682df517b4583efd951c8c7ac1be03bde8c8c327586e36c8884cbf7e98ec1e1c27bf
|
2018-08-01 20:40:32 +03:00
|
|
|
HEAD_REF master
|
2024-04-19 02:41:45 +03:00
|
|
|
PATCHES
|
|
|
|
compiler-options.diff
|
|
|
|
format-string.diff
|
2018-08-01 20:40:32 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LASZIP_BUILD_STATIC)
|
|
|
|
|
2021-07-23 07:58:32 +03:00
|
|
|
vcpkg_cmake_configure(
|
2018-08-01 20:40:32 +03:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
|
|
|
-DLASZIP_BUILD_STATIC=${LASZIP_BUILD_STATIC}
|
|
|
|
)
|
|
|
|
|
2021-07-23 07:58:32 +03:00
|
|
|
vcpkg_cmake_install()
|
2018-08-01 20:40:32 +03:00
|
|
|
|
2021-07-23 07:58:32 +03:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-08-01 20:40:32 +03:00
|
|
|
# Remove laszip_api3 dll since it doesn't export functions properly during build.
|
2021-07-23 07:58:32 +03:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/laszip_api3.dll")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/laszip_api3.dll")
|
2024-04-19 02:41:45 +03:00
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|