mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 19:42:46 +08:00
fix vcpkg_configure_cmake for case when having semicolons in OPTIONS (#12977)
This commit is contained in:
parent
15e886daeb
commit
02bfa2961a
@ -59,7 +59,7 @@ vcpkg_configure_cmake(
|
|||||||
OPTIONS
|
OPTIONS
|
||||||
"-DUSE_OPTIMIZED_BLAS=${USE_OPTIMIZED_BLAS}"
|
"-DUSE_OPTIMIZED_BLAS=${USE_OPTIMIZED_BLAS}"
|
||||||
"-DCBLAS=${CBLAS}"
|
"-DCBLAS=${CBLAS}"
|
||||||
"${FORTRAN_CMAKE}"
|
${FORTRAN_CMAKE}
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
@ -59,11 +59,11 @@
|
|||||||
## * [poco](https://github.com/Microsoft/vcpkg/blob/master/ports/poco/portfile.cmake)
|
## * [poco](https://github.com/Microsoft/vcpkg/blob/master/ports/poco/portfile.cmake)
|
||||||
## * [opencv](https://github.com/Microsoft/vcpkg/blob/master/ports/opencv/portfile.cmake)
|
## * [opencv](https://github.com/Microsoft/vcpkg/blob/master/ports/opencv/portfile.cmake)
|
||||||
function(vcpkg_configure_cmake)
|
function(vcpkg_configure_cmake)
|
||||||
cmake_parse_arguments(_csc
|
# parse parameters such that semicolons in arguments to OPTIONS don't get erased
|
||||||
|
cmake_parse_arguments(PARSE_ARGV 0 _csc
|
||||||
"PREFER_NINJA;DISABLE_PARALLEL_CONFIGURE;NO_CHARSET_FLAG"
|
"PREFER_NINJA;DISABLE_PARALLEL_CONFIGURE;NO_CHARSET_FLAG"
|
||||||
"SOURCE_PATH;GENERATOR"
|
"SOURCE_PATH;GENERATOR"
|
||||||
"OPTIONS;OPTIONS_DEBUG;OPTIONS_RELEASE"
|
"OPTIONS;OPTIONS_DEBUG;OPTIONS_RELEASE"
|
||||||
${ARGN}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if(NOT VCPKG_PLATFORM_TOOLSET)
|
if(NOT VCPKG_PLATFORM_TOOLSET)
|
||||||
|
Loading…
Reference in New Issue
Block a user