summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-03-13 11:55:27 +0000
committerAlexey Samsonov <samsonov@google.com>2014-03-13 11:55:27 +0000
commit5cccf34c114c326b4e2bf60b4e94a949ae01cdc1 (patch)
tree12dce87e0016544f6d03f3276e767fcebdb0ae77
parent561adf2d64fb56102ce45264f3693bf98e09bcea (diff)
[CMake] Attempt to fix standalone compiler-rt build on Windows
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203789 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c882cc4e6..5502bc124 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -95,7 +95,8 @@ else()
list(GET CONFIG_OUTPUT 3 LLVM_MAIN_SRC_DIR)
# Make use of LLVM CMake modules.
- set(LLVM_CMAKE_PATH "${LLVM_BINARY_DIR}/share/llvm/cmake")
+ file(TO_CMAKE_PATH ${LLVM_BINARY_DIR} LLVM_BINARY_DIR_CMAKE_STYLE)
+ set(LLVM_CMAKE_PATH "${LLVM_BINARY_DIR_CMAKE_STYLE}/share/llvm/cmake")
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_PATH}")
# Get some LLVM variables from LLVMConfig.
include("${LLVM_CMAKE_PATH}/LLVMConfig.cmake")