summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-24 20:54:55 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-24 20:54:55 (GMT)
commitdfd275b8f99b52418b5a3bf078b0210e36adab66 (patch)
tree7d049c87d7e805e6704ff55c899a12b423e7139a /Source/CMakeLists.txt
parent74b3924eddc5ddeaa03ad5190f251ab3294c14ea (diff)
downloadCMake-dfd275b8f99b52418b5a3bf078b0210e36adab66.zip
CMake-dfd275b8f99b52418b5a3bf078b0210e36adab66.tar.gz
CMake-dfd275b8f99b52418b5a3bf078b0210e36adab66.tar.bz2
ENH: use correct args for test of java
Diffstat (limited to 'Source/CMakeLists.txt')
-rw-r--r--Source/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 23741e2..b28bcaa 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -659,7 +659,7 @@ IF(BUILD_TESTING)
INCLUDE(FindJava)
IF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE)
- EXEC_PROGRAM(${CMAKE_Java_COMPILER} -version OUTPUT_VARIABLE OUT)
+ EXEC_PROGRAM(${JAVA_COMPILE} ARGS -version OUTPUT_VARIABLE OUT)
IF(OUT MATCHES "invalid flag")
MESSAGE("This java does not even know what version it is!")
ELSE(OUT MATCHES "invalid flag")