ENH: better message for skipping java
This commit is contained in:
parent
0871ddbedd
commit
f5b978fe2f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue