mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 19:42:46 +08: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
@ -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 New Issue
Block a user