summaryrefslogtreecommitdiffstats
path: root/Modules/UseJava.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-04-06 16:14:09 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-06 17:46:51 (GMT)
commitfa382ae85ed11cda00fa3163d5547a3ea434883e (patch)
tree36866f5a313fa619a04e0684c6d61e1fe91408f7 /Modules/UseJava.cmake
parentae2fa89f74a8be6af39431b73aea88792ac1ef44 (diff)
downloadCMake-fa382ae85ed11cda00fa3163d5547a3ea434883e.zip
CMake-fa382ae85ed11cda00fa3163d5547a3ea434883e.tar.gz
CMake-fa382ae85ed11cda00fa3163d5547a3ea434883e.tar.bz2
UseJava: use CMAKE_COMMAND instead of direct cmake call
Author: dancing-leaves <dancing-leaves@users.noreply.github.com>
Diffstat (limited to 'Modules/UseJava.cmake')
-rw-r--r--Modules/UseJava.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake
index 3850890..b59fe34 100644
--- a/Modules/UseJava.cmake
+++ b/Modules/UseJava.cmake
@@ -389,7 +389,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/CMakeParseArguments.cmake)
function (__java_copy_file src dest comment)
add_custom_command(
OUTPUT ${dest}
- COMMAND cmake -E copy_if_different
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different
ARGS ${src}
${dest}
DEPENDS ${src}