CMake: Support spaces in install path with symlinks

Add quotes around the paths so they are treated as one argument.
This commit is contained in:
Maarten Bent 2022-07-22 00:05:42 +02:00
parent e9d299d92c
commit e4f230a3e1
No known key found for this signature in database
GPG key ID: 58AAEE3F4A4FD070
2 changed files with 4 additions and 4 deletions

View file

@ -42,8 +42,8 @@ else()
install(DIRECTORY DESTINATION "bin")
install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
${CMAKE_INSTALL_PREFIX}/lib/wx/config/${wxBUILD_FILE_ID} \
${CMAKE_INSTALL_PREFIX}/bin/wx-config \
\"${CMAKE_INSTALL_PREFIX}/lib/wx/config/${wxBUILD_FILE_ID}\" \
\"${CMAKE_INSTALL_PREFIX}/bin/wx-config\" \
)"
)
endif()

View file

@ -39,8 +39,8 @@ if(wxUSE_XRC)
wx_install(CODE "execute_process( \
COMMAND ${CMAKE_COMMAND} -E create_symlink \
${CMAKE_INSTALL_PREFIX}/bin/${wxrc_output_name}${EXE_SUFFIX} \
${CMAKE_INSTALL_PREFIX}/bin/wxrc${EXE_SUFFIX} \
\"${CMAKE_INSTALL_PREFIX}/bin/${wxrc_output_name}${EXE_SUFFIX}\" \
\"${CMAKE_INSTALL_PREFIX}/bin/wxrc${EXE_SUFFIX}\" \
)"
)
endif()