mirror of https://gitlab.com/QEF/q-e.git
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:
parent
b11db7716c
commit
5b311fd404
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue