From: Jordan Rose Date: Wed, 13 Jun 2018 18:21:47 +0000 (+0000) Subject: [CMake] Handle 'libtool' being at a path with spaces in it. X-Git-Tag: android-x86-8.1-r1~2160 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a71e59ebf7ff06a6c39d28d6fea4f9340c499d0f;hp=6965c8b76101bbedbdb6f37b38a126fb582635bd;p=android-x86%2Fexternal-llvm.git [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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334632 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a2085878166..ba0a467004e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 \ + "\"${CMAKE_LIBTOOL}\" -static ${LIBTOOL_NO_WARNING_FLAG} -o \ ") endforeach() endif()