replace -o with > in qe_preprocess_source

for intel compiler the command
 `FC -cpp -E $(source)-o $(output)`
sends the output always to stdout.
This commit is contained in:
Pietro Delugas 2020-09-28 22:42:09 +02:00 committed by Federico Ficarelli
parent b11db7716c
commit 5b311fd404
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ function(qe_preprocess_source IN OUT)
endif()
add_custom_command(
OUTPUT ${OUT}
COMMAND "${CMAKE_Fortran_COMPILER}" ${f_cpp_flag} ${global_flags} -E ${IN} -o ${OUT}
COMMAND "${CMAKE_Fortran_COMPILER}" ${f_cpp_flag} ${global_flags} -E ${IN} > ${OUT}
MAIN_DEPENDENCY ${IN}
COMMENT "Preprocessing ${IN}"
VERBATIM)
@ -141,4 +141,4 @@ endfunction(qe_ensure_build_type)
if(TARGET QEGlobalCompileDefinitions)
qe_install_targets(QEGlobalCompileDefinitions)
endif()
endif()