[CMake] Handle 'libtool' being at a path with spaces in it.

This can happen on macOS if the user's Xcode is at a path with spaces in it.

llvm-svn: 334632
This commit is contained in:
Jordan Rose 2018-06-13 18:21:47 +00:00
parent b08ed8f952
commit 04df7e8cda

View File

@ -92,7 +92,7 @@ if(CMAKE_HOST_APPLE AND APPLE)
foreach(lang ${languages})
set(CMAKE_${lang}_CREATE_STATIC_LIBRARY
"${CMAKE_LIBTOOL} -static ${LIBTOOL_NO_WARNING_FLAG} -o <TARGET> \
"\"${CMAKE_LIBTOOL}\" -static ${LIBTOOL_NO_WARNING_FLAG} -o <TARGET> \
<LINK_FLAGS> <OBJECTS> ")
endforeach()
endif()