diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-05-25 16:00:24 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-05-25 16:00:24 (GMT) |
commit | 0ee8e4c7ad3012edf3b501c0eeb2ede3c6f0af7e (patch) | |
tree | d2d74f300107087e0d426c119b73375e90c1bd7e /fortran/CMakeLists.txt | |
parent | c86d77e1fe144ac106447b81fb33063671eb98e3 (diff) | |
download | hdf5-0ee8e4c7ad3012edf3b501c0eeb2ede3c6f0af7e.zip hdf5-0ee8e4c7ad3012edf3b501c0eeb2ede3c6f0af7e.tar.gz hdf5-0ee8e4c7ad3012edf3b501c0eeb2ede3c6f0af7e.tar.bz2 |
[svn-r18889] Update CMake fortran configure/build with changes from community.
- Add an install rule to copy compiled fortran module files
- Only build the xlatefile utility if testing and tools are enabled
- Don't do MPI HAVE_XXX checks until MPI_FOUND is true
- Install needs H5version.h & H5overflow.h to be copied
- Add debug information flags to debug compile and link lines for win32 Intel compiler
Diffstat (limited to 'fortran/CMakeLists.txt')
-rw-r--r-- | fortran/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fortran/CMakeLists.txt b/fortran/CMakeLists.txt index a649fab..cf003ea 100644 --- a/fortran/CMakeLists.txt +++ b/fortran/CMakeLists.txt @@ -116,6 +116,16 @@ INCLUDE_DIRECTORIES( ) #----------------------------------------------------------------------------- +# Add debug information (intel Fortran : JB) +#----------------------------------------------------------------------------- +IF (CMAKE_Fortran_COMPILER MATCHES ifort) + IF (WIN32) + SET (CMAKE_Fortran_FLAGS_DEBUG "/debug:full " CACHE "flags" STRING FORCE) + SET (CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG" CACHE "flags" STRING FORCE) + ENDIF (WIN32) +ENDIF (CMAKE_Fortran_COMPILER MATCHES ifort) + +#----------------------------------------------------------------------------- # Traverse source subdirectory #----------------------------------------------------------------------------- ADD_SUBDIRECTORY (${HDF5_F90_SOURCE_DIR}/src ${HDF5_F90_BINARY_DIR}/src) |