[svn-r29314] Add Java option
This commit is contained in:
@@ -14,6 +14,7 @@ set(CTEST_DASHBOARD_ROOT ${CTEST_SCRIPT_DIRECTORY})
|
||||
#CTEST_SOURCE_NAME - name of source folder; HDF4Examples
|
||||
#STATIC_LIBRARIES - Default is YES
|
||||
#FORTRAN_LIBRARIES - Default is NO
|
||||
#JAVA_LIBRARIES - Default is NO
|
||||
##NO_MAC_FORTRAN - set to TRUE to allow shared libs on a Mac)
|
||||
if(DEFINED CTEST_SCRIPT_ARG)
|
||||
# transform ctest script arguments of the form
|
||||
@@ -41,6 +42,9 @@ endif()
|
||||
if(NOT DEFINED FORTRAN_LIBRARIES)
|
||||
set(FORTRANLIBRARIES "NO")
|
||||
endif()
|
||||
if(NOT DEFINED JAVA_LIBRARIES)
|
||||
set(JAVALIBRARIES "NO")
|
||||
endif()
|
||||
|
||||
#TAR_SOURCE - name of tarfile
|
||||
#if(NOT DEFINED TAR_SOURCE)
|
||||
@@ -73,6 +77,11 @@ if(${FORTRANLIBRARIES})
|
||||
else()
|
||||
set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_BUILD_FORTRAN:BOOL=OFF")
|
||||
endif()
|
||||
if(${JAVALIBRARIES})
|
||||
set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_BUILD_JAVA:BOOL=ON")
|
||||
else()
|
||||
set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_BUILD_JAVA:BOOL=OFF")
|
||||
endif()
|
||||
set(BUILD_OPTIONS "${BUILD_OPTIONS} -DHDF5_PACKAGE_NAME:STRING=@HDF5_PACKAGE@@HDF_PACKAGE_EXT@")
|
||||
|
||||
###############################################################################################################
|
||||
|
||||
Reference in New Issue
Block a user