diff --git a/Modules/CMakeJavaInformation.cmake b/Modules/CMakeJavaInformation.cmake index c73b7e84d..76b09e6bd 100644 --- a/Modules/CMakeJavaInformation.cmake +++ b/Modules/CMakeJavaInformation.cmake @@ -15,10 +15,11 @@ ENDIF(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX) # this is a place holder if java needed flags for javac they would go here. IF(NOT CMAKE_Java_CREATE_STATIC_LIBRARY) SET(CMAKE_Java_CREATE_STATIC_LIBRARY - " -cf -C .") -# should be this but compling a java file can create more than one .class file -# so for now get all of them + " -cf -C *.class") + # "*.class" should really be "" but compling a java file can create + # more than one .class file, so for now get all of them ENDIF(NOT CMAKE_Java_CREATE_STATIC_LIBRARY) + # compile a Java file into an object file IF(NOT CMAKE_Java_COMPILE_OBJECT) SET(CMAKE_Java_COMPILE_OBJECT