summaryrefslogtreecommitdiff
path: root/cmake/Modules/CompilerRTUtils.cmake
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-19 07:49:16 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-19 07:49:16 +0000
commit2d8d713ce3af9c349149003407c240aa5b1b5b3d (patch)
tree07e51d1f6b21215d1bbd2c0f3dff2e2a9e3f812f /cmake/Modules/CompilerRTUtils.cmake
parent4819e32d7d9862dec08ed171765713b3cb40fdbf (diff)
[CMake] Rudimentary support for standalone CompilerRT build system.
This change allows to build compiler-rt libraries separately from LLVM/Clang (path to LLVM build directory should be specified at configure time). Running tests is not yet supported. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201647 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules/CompilerRTUtils.cmake')
-rw-r--r--cmake/Modules/CompilerRTUtils.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake
index fc1da8545..ae2d608c8 100644
--- a/cmake/Modules/CompilerRTUtils.cmake
+++ b/cmake/Modules/CompilerRTUtils.cmake
@@ -18,7 +18,7 @@ endfunction()
# Check if a given flag is present in a space-separated flag_string.
# Store the result in out_var.
function(find_flag_in_string flag_string flag out_var)
- string(REPLACE " " ";" flag_list ${flag_string})
+ string(REPLACE " " ";" flag_list "${flag_string}")
list(FIND flag_list ${flag} flag_pos)
if(NOT flag_pos EQUAL -1)
set(${out_var} TRUE PARENT_SCOPE)