From 1ffbc81061e80e738d9d488224bdd76aa960e893 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Fri, 24 Sep 2004 11:34:57 -0400 Subject: ENH: check for all parts of java --- Source/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index f98c168..003a358 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -658,7 +658,7 @@ IF(BUILD_TESTING) ENDIF(CMAKE_Fortran_COMPILER_FULLPATH) INCLUDE(FindJava) - IF(JAVA_COMPILE) + IF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE) ADD_TEST(Java ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/Java" @@ -670,7 +670,7 @@ IF(BUILD_TESTING) --build-run-dir "${CMake_BINARY_DIR}/Tests/Java/" # --test-command ${JAVA_RUNTIME} -classpath hello.jar HelloWorld) --test-command ${JAVA_RUNTIME} HelloWorld) - ENDIF(JAVA_COMPILE) + ENDIF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE) ENDIF(CMAKE_GENERATOR MATCHES "Makefiles") IF (CMAKE_WXWINDOWS_WXCONFIG_EXECUTABLE OR WXWINDOWS_INCLUDE_DIR) -- cgit v0.12