From fa382ae85ed11cda00fa3163d5547a3ea434883e Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 6 Apr 2016 12:14:09 -0400 Subject: [PATCH] UseJava: use CMAKE_COMMAND instead of direct cmake call Author: dancing-leaves --- Modules/UseJava.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/UseJava.cmake b/Modules/UseJava.cmake index 385089092..b59fe34b0 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}