mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 22:29:01 +08:00
6c68a94b4d
<!-- If your PR fixes issues, please note that here by adding "Fixes #NNNNNN." for each fixed issue on separate lines. --> <!-- If you are still working on the PR, open it as a Draft: https://github.blog/2019-02-14-introducing-draft-pull-requests/. --> If this PR updates an existing port, please uncomment and fill out this checklist: - [ x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ x] SHA512s are updated for each updated download. - [ x] The "supports" clause reflects platforms that may be fixed by this new version. - [ x] Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file. - [ x] Any patches that are no longer applied are deleted from the port's directory. - [ x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [ x] Only one version is added to each modified port's versions file. --------- Co-authored-by: WangWeiLin-MV <156736127+WangWeiLin-MV@users.noreply.github.com>
29 lines
842 B
CMake
29 lines
842 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO gknowles/dimcli
|
|
REF "v${VERSION}"
|
|
SHA512 2d475e80e91e10244fd4c7ffeefb1f9fc84a786e2e7885d42295850e7c2dddc6572ad09a610b65e19639da9adca6ac6b6b3e6038cfed803fc2c59ae3818b4281
|
|
HEAD_REF master
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" staticCrt)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
-DLINK_STATIC_RUNTIME:BOOL=${staticCrt}
|
|
-DINSTALL_LIBS:BOOL=ON
|
|
-DBUILD_PROJECT_NAME=dimcli
|
|
-DBUILD_TESTING=OFF
|
|
-DINSTALL_TOOLS=OFF
|
|
-DINSTALL_TESTS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
|
|
# Remove includes from ${CMAKE_INSTALL_PREFIX}/debug
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|