diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2015-02-26 14:44:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2015-02-26 14:44:46 (GMT) |
commit | 036ecfa32b2b8aeee5f842b18a755af7850196ab (patch) | |
tree | 5beb8203d622a7e21fbea804b6fd362bb9888651 /fortran | |
parent | add51325ef68468306fd7cfe24bf6a039820f9a8 (diff) | |
download | hdf5-036ecfa32b2b8aeee5f842b18a755af7850196ab.zip hdf5-036ecfa32b2b8aeee5f842b18a755af7850196ab.tar.gz hdf5-036ecfa32b2b8aeee5f842b18a755af7850196ab.tar.bz2 |
[svn-r26316] Add IS_F2003 option to def file macro
Diffstat (limited to 'fortran')
-rw-r--r-- | fortran/src/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt index 5b641d1..9043420 100644 --- a/fortran/src/CMakeLists.txt +++ b/fortran/src/CMakeLists.txt @@ -11,6 +11,8 @@ if (WIN32) endif (NOT H5_HAVE_PARALLEL) if (NOT HDF5_ENABLE_F2003) set (H5_NOF03EXP ";") + else (NOT HDF5_ENABLE_F2003) + set (H5_F03EXP ";") endif (NOT HDF5_ENABLE_F2003) configure_file (${HDF5_F90_SRC_SOURCE_DIR}/hdf5_fortrandll.def.in ${HDF5_F90_SRC_BINARY_DIR}/hdf5_fortrandll.def @ONLY) endif (MSVC) @@ -132,7 +134,6 @@ if (H5_HAVE_PARALLEL) ${HDF5_F90_SRC_SOURCE_DIR}/H5FDmpiof.c ) endif (H5_HAVE_PARALLEL) - set_source_files_properties (${f90CStub_C_SRCS} PROPERTIES LANGUAGE C) set (f90CStub_C_HDRS @@ -224,6 +225,7 @@ else (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND) ${HDF5_F90_SRC_SOURCE_DIR}/HDF5.f90 ) endif (H5_HAVE_PARALLEL AND MPI_Fortran_FOUND) +set_source_files_properties (${f90_F_SRCS} PROPERTIES LANGUAGE Fortran) #----------------------------------------------------------------------------- # Add Main fortran library @@ -255,6 +257,7 @@ set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF H5_SET_LIB_OPTIONS (${HDF5_F90_LIB_TARGET} ${HDF5_F90_LIB_NAME} ${LIB_TYPE}) set_target_properties (${HDF5_F90_LIB_TARGET} PROPERTIES FOLDER libraries/fortran + LINKER_LANGUAGE Fortran INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>" ) |