1add_executable(M2NFixBnd main.c phasta.cc input.f readnblk.f cname.f setsyncioparam.cc new_interface.c dumbCvariables.c ctypes.f tmrc.c commuMax.f error.f) 2target_link_libraries(M2NFixBnd phastaIO ${MPI_C_LIBRARIES} ${MPI_Fortran_LIBRARIES}) 3 4if(CMAKE_Fortran_COMPILER_ID MATCHES XL) 5 #force preprocessing 6 set_source_files_properties(readnblk.f PROPERTIES COMPILE_FLAGS 7"-qsuffix=cpp=f") 8endif(CMAKE_Fortran_COMPILER_ID MATCHES XL) 9if(CMAKE_Fortran_COMPILER_ID MATCHES PGI) 10 #force preprocessing 11 set_source_files_properties(readnblk.f PROPERTIES COMPILE_FLAGS 12"-Mpreprocess") 13endif(CMAKE_Fortran_COMPILER_ID MATCHES PGI) 14