mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 06:43:11 +08:00
[vcpkg_configure_make] Report warning when unresolved arguments are passed in (#22567)
* [vcpkg_configure_make] Report warning when unresolved arguments are passed in * Add missing option NO_DEBUG * Add _VCPKG_MAKE_NO_DEBUG for vcpkg_configure_make * Add more condition * [apr] Remove NO_DEBUG * [liburing] Remove NO_DEBUG * [apr-util] Remove NO_DEBUG * version * Mssing port-version ++ * version
This commit is contained in:
parent
ffb2887f5c
commit
e86ed50718
@ -63,7 +63,6 @@ else()
|
||||
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
NO_DEBUG
|
||||
OPTIONS
|
||||
"--prefix=${CURRENT_INSTALLED_DIR}"
|
||||
"--with-apr=${CURRENT_INSTALLED_DIR}/tools/apr"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "apr-util",
|
||||
"version": "1.6.1",
|
||||
"port-version": 6,
|
||||
"port-version": 7,
|
||||
"description": "Apache Portable Runtime (APR) project mission is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementation",
|
||||
"homepage": "https://apr.apache.org/",
|
||||
"dependencies": [
|
||||
|
@ -64,7 +64,6 @@ else()
|
||||
set(ENV{CFLAGS} "$ENV{CFLAGS} -Wno-error=implicit-function-declaration")
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
NO_DEBUG
|
||||
OPTIONS
|
||||
"--prefix=${CURRENT_INSTALLED_DIR}"
|
||||
"${CONFIGURE_PARAMETER_1}"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "apr",
|
||||
"version": "1.7.0",
|
||||
"port-version": 6,
|
||||
"port-version": 7,
|
||||
"description": "The Apache Portable Runtime (APR) is a C library that forms a system portability layer that covers many operating systems.",
|
||||
"homepage": "https://apr.apache.org/",
|
||||
"supports": "!uwp",
|
||||
|
@ -13,7 +13,6 @@ vcpkg_from_github(
|
||||
vcpkg_configure_make(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
COPY_SOURCE
|
||||
NO_DEBUG
|
||||
)
|
||||
vcpkg_install_make()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "liburing",
|
||||
"version": "2.0",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Linux-native io_uring I/O access library",
|
||||
"homepage": "https://github.com/axboe/liburing",
|
||||
"supports": "linux"
|
||||
|
@ -124,6 +124,9 @@ function(vcpkg_build_make)
|
||||
vcpkg_backup_env_variables(VARS LIB LIBPATH LIBRARY_PATH LD_LIBRARY_PATH CPPFLAGS CFLAGS CXXFLAGS RCFLAGS)
|
||||
|
||||
foreach(buildtype IN ITEMS "debug" "release")
|
||||
if (buildtype STREQUAL "debug" AND _VCPKG_MAKE_NO_DEBUG)
|
||||
continue()
|
||||
endif()
|
||||
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "${buildtype}")
|
||||
if("${buildtype}" STREQUAL "debug")
|
||||
set(short_buildtype "-dbg")
|
||||
@ -251,4 +254,5 @@ function(vcpkg_build_make)
|
||||
endif()
|
||||
|
||||
vcpkg_restore_env_variables(VARS LIB LIBPATH LIBRARY_PATH LD_LIBRARY_PATH CPPFLAGS CFLAGS CXXFLAGS RCFLAGS)
|
||||
unset(_VCPKG_MAKE_NO_DEBUG PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
@ -228,11 +228,15 @@ endmacro()
|
||||
function(vcpkg_configure_make)
|
||||
# parse parameters such that semicolons in options arguments to COMMAND don't get erased
|
||||
cmake_parse_arguments(PARSE_ARGV 0 arg
|
||||
"AUTOCONFIG;SKIP_CONFIGURE;COPY_SOURCE;DISABLE_VERBOSE_FLAGS;NO_ADDITIONAL_PATHS;ADD_BIN_TO_PATH;USE_WRAPPERS;DETERMINE_BUILD_TRIPLET"
|
||||
"AUTOCONFIG;SKIP_CONFIGURE;COPY_SOURCE;DISABLE_VERBOSE_FLAGS;NO_ADDITIONAL_PATHS;ADD_BIN_TO_PATH;NO_DEBUG;USE_WRAPPERS;DETERMINE_BUILD_TRIPLET"
|
||||
"SOURCE_PATH;PROJECT_SUBPATH;PRERUN_SHELL;BUILD_TRIPLET"
|
||||
"OPTIONS;OPTIONS_DEBUG;OPTIONS_RELEASE;CONFIGURE_ENVIRONMENT_VARIABLES;CONFIG_DEPENDENT_ENVIRONMENT;ADDITIONAL_MSYS_PACKAGES"
|
||||
)
|
||||
|
||||
if(DEFINED arg_UNPARSED_ARGUMENTS)
|
||||
message(WARNING "${CMAKE_CURRENT_FUNCTION} was passed extra arguments: ${arg_UNPARSED_ARGUMENTS}")
|
||||
endif()
|
||||
|
||||
z_vcpkg_get_cmake_vars(cmake_vars_file)
|
||||
debug_message("Including cmake vars from: ${cmake_vars_file}")
|
||||
include("${cmake_vars_file}")
|
||||
@ -866,4 +870,5 @@ function(vcpkg_configure_make)
|
||||
|
||||
set(_VCPKG_PROJECT_SOURCE_PATH ${arg_SOURCE_PATH} PARENT_SCOPE)
|
||||
set(_VCPKG_PROJECT_SUBPATH ${arg_PROJECT_SUBPATH} PARENT_SCOPE)
|
||||
set(_VCPKG_MAKE_NO_DEBUG ${arg_NO_DEBUG} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "d758cde4c829f6c3a66a773d517f9e9425227629",
|
||||
"version": "1.6.1",
|
||||
"port-version": 7
|
||||
},
|
||||
{
|
||||
"git-tree": "d27be40b8f670b002604154ef5657c011b8de733",
|
||||
"version": "1.6.1",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e73f548920cc5add8a47af9b8775a26c89050101",
|
||||
"version": "1.7.0",
|
||||
"port-version": 7
|
||||
},
|
||||
{
|
||||
"git-tree": "bc5604f4ffbdcdaee979fccdb1fd5a85dfc7a3db",
|
||||
"version": "1.7.0",
|
||||
|
@ -110,11 +110,11 @@
|
||||
},
|
||||
"apr": {
|
||||
"baseline": "1.7.0",
|
||||
"port-version": 6
|
||||
"port-version": 7
|
||||
},
|
||||
"apr-util": {
|
||||
"baseline": "1.6.1",
|
||||
"port-version": 6
|
||||
"port-version": 7
|
||||
},
|
||||
"apsi": {
|
||||
"baseline": "0.7.0",
|
||||
@ -4066,7 +4066,7 @@
|
||||
},
|
||||
"liburing": {
|
||||
"baseline": "2.0",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"libusb": {
|
||||
"baseline": "1.0.24",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "65bbf5b3f642b9e76a659d78a9077d207c827b76",
|
||||
"version": "2.0",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "e193d537e05887e8efeae8ab1328dc7e33499e01",
|
||||
"version": "2.0",
|
||||
|
Loading…
Reference in New Issue
Block a user