Changes in cmake scripts to take into account new IO_Form files. Please be...

Changes in cmake scripts to take into account new IO_Form files. Please be careful when compiling with HDF5, one has to comment the fourth line in set_compiler_flags.cmake and use the appropriate cmake options.
parent 0a464248
......@@ -260,8 +260,8 @@ else()
endif()
# CFML_IOForm
#file(GLOB SUBMOD_IOFORM_SRC CFML_IOForm/*.f90)
set(IOFORM_SRC CFML_IOForm.f90 CFML_IOForm/Format_CFL.f90 CFML_IOForm/Write_CIF.f90)
file(GLOB SUBMOD_IOFORM_SRC CFML_IOForm/*.f90)
set(IOFORM_SRC CFML_IOForm.f90 ${SUBMOD_IOFORM_SRC})
if(${COMPILER_NAME} STREQUAL ifort)
set_source_files_properties(${IOFORM_SRC}
PROPERTIES COMPILE_FLAGS "${OPT_FLAGS} ${OPT_FLAGS1} ${OPT_FLAGS2}")
......
macro(set_compiler_flags)
# Nullify all the Fortran flags.
#set(CMAKE_Fortran_FLAGS "")
set(CMAKE_Fortran_FLAGS "")
get_filename_component(COMPILER_NAME ${CMAKE_Fortran_COMPILER} NAME_WE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment