diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-24 20:54:55 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2004-09-24 20:54:55 (GMT) |
commit | dfd275b8f99b52418b5a3bf078b0210e36adab66 (patch) | |
tree | 7d049c87d7e805e6704ff55c899a12b423e7139a /Source/CMakeLists.txt | |
parent | 74b3924eddc5ddeaa03ad5190f251ab3294c14ea (diff) | |
download | CMake-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.txt | 2 |
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") |