mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 02:11:58 +08:00
[vcpkg toolchain] Fix paths with special characters (#24463)
* [vcpkg toolchain] Fix paths with special characters * fix * Use VERBATIM instead of double quotes
This commit is contained in:
parent
c8a56fdc15
commit
f30786c9c4
@ -584,14 +584,16 @@ function(add_executable)
|
||||
-targetBinary "$<TARGET_FILE:${target_name}>"
|
||||
-installedDir "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}$<$<CONFIG:Debug>:/debug>/bin"
|
||||
-OutVariable out
|
||||
VERBATIM
|
||||
${EXTRA_OPTIONS}
|
||||
)
|
||||
elseif(Z_VCPKG_TARGET_TRIPLET_PLAT MATCHES "osx")
|
||||
if(NOT MACOSX_BUNDLE_IDX EQUAL -1)
|
||||
add_custom_command(TARGET "${target_name}" POST_BUILD
|
||||
COMMAND python "${Z_VCPKG_TOOLCHAIN_DIR}/osx/applocal.py"
|
||||
"$<TARGET_FILE:${target_name}>"
|
||||
"${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}$<$<CONFIG:Debug>:/debug>"
|
||||
COMMAND python "${Z_VCPKG_TOOLCHAIN_DIR}/osx/applocal.py"
|
||||
"$<TARGET_FILE:${target_name}>"
|
||||
"${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}$<$<CONFIG:Debug>:/debug>"
|
||||
VERBATIM
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
@ -618,6 +620,7 @@ function(add_library)
|
||||
-targetBinary "$<TARGET_FILE:${target_name}>"
|
||||
-installedDir "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}$<$<CONFIG:Debug>:/debug>/bin"
|
||||
-OutVariable out
|
||||
VERBATIM
|
||||
)
|
||||
endif()
|
||||
set_target_properties("${target_name}" PROPERTIES VS_USER_PROPS do_not_import_user.props)
|
||||
|
Loading…
x
Reference in New Issue
Block a user