mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +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
|
||||
"-DUSE_OPTIMIZED_BLAS=${USE_OPTIMIZED_BLAS}"
|
||||
"-DCBLAS=${CBLAS}"
|
||||
"${FORTRAN_CMAKE}"
|
||||
${FORTRAN_CMAKE}
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
@ -59,11 +59,11 @@
|
||||
## * [poco](https://github.com/Microsoft/vcpkg/blob/master/ports/poco/portfile.cmake)
|
||||
## * [opencv](https://github.com/Microsoft/vcpkg/blob/master/ports/opencv/portfile.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"
|
||||
"SOURCE_PATH;GENERATOR"
|
||||
"OPTIONS;OPTIONS_DEBUG;OPTIONS_RELEASE"
|
||||
${ARGN}
|
||||
)
|
||||
|
||||
if(NOT VCPKG_PLATFORM_TOOLSET)
|
||||
|
Loading…
x
Reference in New Issue
Block a user