From 4d76145884c13d8287bd55c6ae0bba1a37caed32 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Tue, 14 Feb 2012 11:46:53 +0000 Subject: [PATCH] Work around issue with FindJava module --- applications/jpip/util/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/jpip/util/CMakeLists.txt b/applications/jpip/util/CMakeLists.txt index 23211e68..4f49b3fa 100644 --- a/applications/jpip/util/CMakeLists.txt +++ b/applications/jpip/util/CMakeLists.txt @@ -50,7 +50,7 @@ ENDFOREACH(exe) FIND_PACKAGE(Java 1.5 COMPONENTS Development) # javac, jar # Only build the java viewer if dev is found: -if(Java_Development_FOUND) +if(Java_Development_FOUND AND Java_JAVAC_EXECUTABLE) # 1. opj_viewer # build dep list: file(GLOB java1_srcs "opj_viewer/src/*.java")