summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-12-29 04:05:23 +0000
committerNico Weber <nicolasweber@gmx.de>2013-12-29 04:05:23 +0000
commit006e786b35cbcbfbb40abb029656b5140f38020e (patch)
treec26d07b71d1515e15ad5f5c5ff3a2a93eb8f0973 /cmake/modules/AddLLVM.cmake
parent9761b5a3e2b99bd7233b7c30acb72fb537d67e9f (diff)
downloadllvm-006e786b35cbcbfbb40abb029656b5140f38020e.tar.gz
llvm-006e786b35cbcbfbb40abb029656b5140f38020e.tar.bz2
llvm-006e786b35cbcbfbb40abb029656b5140f38020e.tar.xz
The same we do every commit, Pinky: Try to fix the windows build (after r198136).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198148 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 4238f52e41..681bbe899b 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -35,9 +35,12 @@ function(add_llvm_symbol_exports target_name export_file)
set(CAT "cat")
endif()
+ # Using ${export_file} in add_custom_command directly confuses cmd.exe.
+ file(TO_NATIVE_PATH ${export_file} export_file_backslashes)
+
add_custom_command(OUTPUT symbol.def
COMMAND ${CMAKE_COMMAND} -E echo "EXPORTS" > symbol.def
- COMMAND ${CAT} "\"${export_file}\"" >> symbol.def
+ COMMAND ${CAT} ${export_file_backslashes} >> symbol.def
DEPENDS ${export_file}
VERBATIM
COMMENT "Creating export file for ${target_name}")