COMP: Conditionalize the last change so that the fix only applies to WIN32. Leave it the way it was elsewhere, the new way does not work on the Mac continuous dashboard...
This commit is contained in:
parent
a313a098d0
commit
908a2b462d
|
@ -14,10 +14,16 @@ 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)
|
||||
IF(WIN32)
|
||||
SET(class_files_mask "*.class")
|
||||
ELSE(WIN32)
|
||||
SET(class_files_mask ".")
|
||||
ENDIF(WIN32)
|
||||
|
||||
SET(CMAKE_Java_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_Java_ARCHIVE> -cf <TARGET> -C <OBJECT_DIR> *.class")
|
||||
# "*.class" should really be "<OBJECTS>" but compling a java file can create
|
||||
# more than one .class file, so for now get all of them
|
||||
"<CMAKE_Java_ARCHIVE> -cf <TARGET> -C <OBJECT_DIR> ${class_files_mask}")
|
||||
# "${class_files_mask}" should really be "<OBJECTS>" but compling a *.java
|
||||
# file can create more than one *.class file...
|
||||
ENDIF(NOT CMAKE_Java_CREATE_STATIC_LIBRARY)
|
||||
|
||||
# compile a Java file into an object file
|
||||
|
|
Loading…
Reference in New Issue