summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-12-29 00:11:20 +0000
committerNico Weber <nicolasweber@gmx.de>2013-12-29 00:11:20 +0000
commit6d731f052b34aec89942811f6000aebd15e9a7d3 (patch)
tree5167d9acd0843f063f9ba45d30a009d96c6b0b87 /cmake
parent3ab1aa82a253b6b38c00710bec6eb2a1eb5420bf (diff)
downloadllvm-6d731f052b34aec89942811f6000aebd15e9a7d3.tar.gz
llvm-6d731f052b34aec89942811f6000aebd15e9a7d3.tar.bz2
llvm-6d731f052b34aec89942811f6000aebd15e9a7d3.tar.xz
Use `${CMAKE_COMMAND}` instead of `cmake`.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/AddLLVM.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 5be5a5448d..ea06f359b0 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -36,7 +36,7 @@ function(add_llvm_symbol_exports target_name export_file)
endif()
add_custom_command(OUTPUT symbol.def
- COMMAND cmake -E echo "EXPORTS" > symbol.def
+ COMMAND ${CMAKE_COMMAND} -E echo "EXPORTS" > symbol.def
COMMAND ${CAT} ${export_file} >> symbol.def
DEPENDS ${export_file}
VERBATIM
@@ -423,7 +423,7 @@ function(add_lit_target target comment)
add_dependencies(${target} ${ARG_DEPENDS})
else()
add_custom_target(${target}
- COMMAND cmake -E echo "${target} does nothing, no tools built.")
+ COMMAND ${CMAKE_COMMAND} -E echo "${target} does nothing, no tools built.")
message(STATUS "${target} does nothing.")
endif()