瀏覽代碼

Merge topic 'fix-12273-quote-arg-in-findboost'

cdf5224 FindBoost: Quote possibly empty string argument (#12273)
David Cole 14 年之前
父節點
當前提交
7f8cf4236d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Modules/FindBoost.cmake

+ 1 - 1
Modules/FindBoost.cmake

@@ -405,7 +405,7 @@ endfunction()
 #
 function(_Boost_PREPEND_LIST_WITH_THREADAPI _output)
   set(_orig_libnames ${ARGN})
-  string(REPLACE "thread" "thread_${Boost_THREADAPI}" _threadapi_libnames ${_orig_libnames})
+  string(REPLACE "thread" "thread_${Boost_THREADAPI}" _threadapi_libnames "${_orig_libnames}")
   set(${_output} ${_threadapi_libnames} ${_orig_libnames} PARENT_SCOPE)
 endfunction()