mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 14:30:27 +00:00
Quote paths in case there is a space in one of them.
This commit is contained in:
parent
89108b99ec
commit
7ac0ab1f88
@ -65,7 +65,7 @@ macro(_do_build Include Library LibrarySource Source)
|
||||
|
||||
"set(CMAKE_INCLUDE_CURRENT_DIR ON)\n"
|
||||
|
||||
"set(CMAKE_RUNTIME_OUTPUT_DIRECTORY \${CMAKE_CURRENT_BINARY_DIR})\n"
|
||||
"set(CMAKE_RUNTIME_OUTPUT_DIRECTORY \"\${CMAKE_CURRENT_BINARY_DIR}\")\n"
|
||||
|
||||
"include(GenerateExportHeader)\n"
|
||||
|
||||
@ -79,9 +79,9 @@ macro(_do_build Include Library LibrarySource Source)
|
||||
" add_definitions(-DCOMPILER_IS_MSVC)\n"
|
||||
"endif()\n"
|
||||
|
||||
"add_subdirectory(${LibrarySource})\n"
|
||||
"add_subdirectory(\"${LibrarySource}\")\n"
|
||||
|
||||
"include_directories(${LibrarySource} \${CMAKE_CURRENT_BINARY_DIR}/${LibrarySource})\n"
|
||||
"include_directories(\"${LibrarySource}\" \"\${CMAKE_CURRENT_BINARY_DIR}/${LibrarySource}\")\n"
|
||||
|
||||
"${CONDITIONAL_STATIC_DEFINE}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user