ENH: better message for skipping java

This commit is contained in:
Bill Hoffman 2004-09-27 11:03:20 -04:00
parent 0871ddbedd
commit f5b978fe2f
1 changed files with 1 additions and 1 deletions

View File

@ -661,7 +661,7 @@ IF(BUILD_TESTING)
IF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE) IF(JAVA_COMPILE AND JAVA_RUNTIME AND JAVA_ARCHIVE)
EXEC_PROGRAM(${JAVA_COMPILE} ARGS -version OUTPUT_VARIABLE OUT) EXEC_PROGRAM(${JAVA_COMPILE} ARGS -version OUTPUT_VARIABLE OUT)
IF(OUT MATCHES "invalid flag") IF(OUT MATCHES "invalid flag")
MESSAGE("This java does not even know what version it is!") MESSAGE("Skipping Java Test because ${JAVA_COMPILE} -version produced: ${OUT}")
ELSE(OUT MATCHES "invalid flag") ELSE(OUT MATCHES "invalid flag")
ADD_TEST(Java ${CMAKE_CTEST_COMMAND} ADD_TEST(Java ${CMAKE_CTEST_COMMAND}
--build-and-test --build-and-test