1 # This should be included before the _INIT variables are
2 # used to initialize the cache. Since the rule variables
3 # have if blocks on them, users can still define them here.
4 # But, it should still be after the platform file so changes can
5 # be made to those values.
7 IF(CMAKE_USER_MAKE_RULES_OVERRIDE)
8 INCLUDE(${CMAKE_USER_MAKE_RULES_OVERRIDE})
9 ENDIF(CMAKE_USER_MAKE_RULES_OVERRIDE)
11 IF(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX)
12 INCLUDE(${CMAKE_USER_MAKE_RULES_OVERRIDE_CXX})
13 ENDIF(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX)
15 # this is a place holder if java needed flags for javac they would go here.
16 IF(NOT CMAKE_Java_CREATE_STATIC_LIBRARY)
18 # SET(class_files_mask "*.class")
20 SET(class_files_mask ".")
23 SET(CMAKE_Java_CREATE_STATIC_LIBRARY
24 "<CMAKE_Java_ARCHIVE> -cf <TARGET> -C <OBJECT_DIR> ${class_files_mask}")
25 # "${class_files_mask}" should really be "<OBJECTS>" but compling a *.java
26 # file can create more than one *.class file...
27 ENDIF(NOT CMAKE_Java_CREATE_STATIC_LIBRARY)
29 # compile a Java file into an object file
30 IF(NOT CMAKE_Java_COMPILE_OBJECT)
31 SET(CMAKE_Java_COMPILE_OBJECT
32 "<CMAKE_Java_COMPILER> <FLAGS> <SOURCE> -d <OBJECT_DIR>")
33 ENDIF(NOT CMAKE_Java_COMPILE_OBJECT)
35 # set java include flag option and the separator for multiple include paths
36 SET(CMAKE_INCLUDE_FLAG_Java "-classpath ")
37 IF(WIN32 AND NOT CYGWIN)
38 SET(CMAKE_INCLUDE_FLAG_SEP_Java ";")
39 ELSE(WIN32 AND NOT CYGWIN)
40 SET(CMAKE_INCLUDE_FLAG_SEP_Java ":")
41 ENDIF(WIN32 AND NOT CYGWIN)