Merge topic 'UseJava-cmake-command'

fa382ae8 UseJava: use CMAKE_COMMAND instead of direct cmake call
This commit is contained in:
Brad King 2016-04-07 08:57:35 -04:00 committed by CMake Topic Stage
commit cdce3cc902
1 changed files with 1 additions and 1 deletions

View File

@ -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}