aboutsummaryrefslogtreecommitdiffstats
path: root/java/CMakeLists.txt
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-05-03 11:11:48 +0300
committerPetre Eftime <[email protected]>2016-05-03 11:11:48 +0300
commit249b457f16623885db25d3ce58b6bb1de4eb509a (patch)
tree9da438f0632dced0eb2644f4f212bd1f01bf2a1f /java/CMakeLists.txt
parent5149de5fdb9e96d4db626d069a86f17f8c83df48 (diff)
java: Fix direct reference to cmake command
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'java/CMakeLists.txt')
-rw-r--r--java/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/CMakeLists.txt b/java/CMakeLists.txt
index 8f55c399..9aeda922 100644
--- a/java/CMakeLists.txt
+++ b/java/CMakeLists.txt
@@ -35,7 +35,7 @@ set(JAVA_CLASSES tinyb.BluetoothAdapter
tinyb.ObjectArrayArgCallback)
add_custom_command (TARGET tinybjar
POST_BUILD
- COMMAND cmake -E echo "Generating JNI headers.."
+ COMMAND ${CMAKE_COMMAND} -E echo "Generating JNI headers.."
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/tinybjar.dir"
COMMAND ${Java_JAVAH_EXECUTABLE} -d jni/ -jni ${JAVA_CLASSES}
)