if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -convert big_endian -assume byterecl -real-size 64") elseif(CMAKE_Fortran_COMPILER_ID MATCHES "^(GNU)$") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fconvert=big-endian -fdefault-real-8") endif() list(APPEND fortran_src sno8grb.f ) set(exe_name snow_sno8grb) add_executable(${exe_name} ${fortran_src}) target_link_libraries( ${exe_name} w3emc::w3emc_d bacio::${bacio_name}) install(TARGETS ${exe_name} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})