mirror of
https://github.com/microsoft/vcpkg
synced 2024-11-21 16:09:03 -07:00
[vcpkg_*_cmake] remove deprecation message (#16480)
* [vcpkg_*_cmake] remove deprecation message to be replaced by a note in the maintainer-guide this allows existing ports to build without warnings, so as to avoid warning people unnecessarily, while still making sure people update when they update ports. * Update docs/maintainers/maintainer-guide.md
This commit is contained in:
parent
395cb682bd
commit
c47216ac79
5 changed files with 2 additions and 8 deletions
|
@ -229,7 +229,7 @@ If you're updating multiple ports at the same time, instead you can run:
|
|||
vcpkg x-add-version --all
|
||||
```
|
||||
|
||||
To update the files for all modified ports at once.
|
||||
To update the files for all modified ports at once.
|
||||
|
||||
_NOTE: These commands require you to have committed your changes to the ports before running them. The reason is that the Git SHA of the port directory is required in these version files. But don't worry, the `x-add-version` command will warn you if you have local changes that haven't been committed._
|
||||
|
||||
|
|
|
@ -36,14 +36,11 @@ You can use the alias [`vcpkg_install_cmake()`](vcpkg_configure_cmake.md) functi
|
|||
|
||||
function(vcpkg_build_cmake)
|
||||
cmake_parse_arguments(PARSE_ARGV 0 "arg"
|
||||
"DISABLE_PARALLEL;ADD_BIN_TO_PATH;Z_VCPKG_DISABLE_DEPRECATION_MESSAGE"
|
||||
"DISABLE_PARALLEL;ADD_BIN_TO_PATH"
|
||||
"TARGET;LOGFILE_ROOT"
|
||||
""
|
||||
)
|
||||
|
||||
if(NOT arg_Z_VCPKG_DISABLE_DEPRECATION_MESSAGE)
|
||||
message(DEPRECATION "vcpkg_build_cmake has been deprecated in favor of vcpkg_cmake_build from the vcpkg-cmake port.")
|
||||
endif()
|
||||
if(Z_VCPKG_CMAKE_BUILD_GUARD)
|
||||
message(FATAL_ERROR "The ${PORT} port already depends on vcpkg-cmake; using both vcpkg-cmake and vcpkg_build_cmake in the same port is unsupported.")
|
||||
endif()
|
||||
|
|
|
@ -69,7 +69,6 @@ This command supplies many common arguments to CMake. To see the full list, exam
|
|||
#]===]
|
||||
|
||||
function(vcpkg_configure_cmake)
|
||||
message(DEPRECATION "vcpkg_configure_cmake has been deprecated in favor of vcpkg_cmake_configure from the vcpkg-cmake port.")
|
||||
if(Z_VCPKG_CMAKE_CONFIGURE_GUARD)
|
||||
message(FATAL_ERROR "The ${PORT} port already depends on vcpkg-cmake; using both vcpkg-cmake and vcpkg_configure_cmake in the same port is unsupported.")
|
||||
endif()
|
||||
|
|
|
@ -53,7 +53,6 @@ Replace `${CURRENT_INSTALLED_DIR}` with `${_IMPORT_PREFIX}` in configs and targe
|
|||
#]===]
|
||||
|
||||
function(vcpkg_fixup_cmake_targets)
|
||||
message(DEPRECATION "vcpkg_fixup_cmake_targets has been deprecated in favor of vcpkg_cmake_config_fixup from the vcpkg-cmake-config port.")
|
||||
if(Z_VCPKG_CMAKE_CONFIG_FIXUP_GUARD)
|
||||
message(FATAL_ERROR "The ${PORT} port already depends on vcpkg-cmake-config; using both vcpkg-cmake-config and vcpkg_fixup_cmake_targets in the same port is unsupported.")
|
||||
endif()
|
||||
|
|
|
@ -26,7 +26,6 @@ parameter.
|
|||
#]===]
|
||||
|
||||
function(vcpkg_install_cmake)
|
||||
message(DEPRECATION "vcpkg_install_cmake has been deprecated in favor of vcpkg_cmake_install from the vcpkg-cmake port.")
|
||||
if(Z_VCPKG_CMAKE_INSTALL_GUARD)
|
||||
message(FATAL_ERROR "The ${PORT} port already depends on vcpkg-cmake; using both vcpkg-cmake and vcpkg_install_cmake in the same port is unsupported.")
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue