mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 03:19:08 +08:00
[new-port-template] Remove deprecated cmake (#23283)
* Remove deprecated cmake from templates * Fix / * Comment about vcpkg_cmake_config_fixup
This commit is contained in:
parent
d3ad95aabd
commit
5c3567b5bc
@ -56,19 +56,23 @@ vcpkg_extract_source_archive_ex(
|
||||
# tbb ROCKSDB_IGNORE_PACKAGE_TBB
|
||||
# )
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
||||
# OPTIONS_RELEASE -DOPTIMIZE=1
|
||||
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
# # Moves all .cmake files from /debug/share/@PORT@/ to /share/@PORT@/
|
||||
# # See /docs/maintainers/vcpkg_fixup_cmake_targets.md for more details
|
||||
# vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/@PORT@)
|
||||
# # See /docs/maintainers/ports/vcpkg-cmake-config/vcpkg_cmake_config_fixup.md for more details
|
||||
# When you uncomment "vcpkg_cmake_config_fixup()", you need to add the following to "dependencies" vcpkg.json:
|
||||
#{
|
||||
# "name": "vcpkg-cmake-config",
|
||||
# "host": true
|
||||
#}
|
||||
# vcpkg_cmake_config_fixup(CONFIG_PATH cmake TARGET_PATH share/@PORT@)
|
||||
|
||||
# # Handle copyright
|
||||
# file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/@PORT@ RENAME copyright)
|
||||
# file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/@PORT@" RENAME copyright)
|
||||
|
@ -3,7 +3,12 @@
|
||||
"version-string": "",
|
||||
"homepage": "",
|
||||
"description": "",
|
||||
"dependencies": [],
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
|
||||
"default-features": [],
|
||||
"features": [
|
||||
|
Loading…
Reference in New Issue
Block a user