Work around issue with FindJava module

This commit is contained in:
Mathieu Malaterre 2012-02-14 11:46:53 +00:00
parent bdf1343f62
commit 4d76145884
1 changed files with 1 additions and 1 deletions

View File

@ -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")