Tests: Fix CMake syntax warning in VSGNUFortran test

This commit is contained in:
Brad King 2017-09-15 07:53:50 -04:00
parent 9da13bc3f7
commit 7200ab491b

View File

@ -14,7 +14,7 @@ file(TO_NATIVE_PATH "${MINGW_PATH}" MINGW_PATH)
string(REPLACE "\\" "\\\\" MINGW_PATH "${MINGW_PATH}")
message("${MINGW_PATH}")
set(test_exe "@VSGNUFortran_BINARY_DIR@/bin/c_using_fortran.exe")
set(ENV{PATH} "${MINGW_PATH}";$ENV{PATH})
set(ENV{PATH} "${MINGW_PATH};$ENV{PATH}")
message("run ${test_exe}")
execute_process(COMMAND "${test_exe}"
RESULT_VARIABLE res)