UseJava: use CMAKE_COMMAND instead of direct cmake call
Author: dancing-leaves <dancing-leaves@users.noreply.github.com>
This commit is contained in:
parent
ae2fa89f74
commit
fa382ae85e
|
@ -389,7 +389,7 @@ include(${CMAKE_CURRENT_LIST_DIR}/CMakeParseArguments.cmake)
|
||||||
function (__java_copy_file src dest comment)
|
function (__java_copy_file src dest comment)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${dest}
|
OUTPUT ${dest}
|
||||||
COMMAND cmake -E copy_if_different
|
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||||
ARGS ${src}
|
ARGS ${src}
|
||||||
${dest}
|
${dest}
|
||||||
DEPENDS ${src}
|
DEPENDS ${src}
|
||||||
|
|
Loading…
Reference in New Issue