Commit f3806d43 authored by Martin Beseda's avatar Martin Beseda

FIX: Fixed exporting environmental variables for used compilers. Now the file...

FIX: Fixed exporting environmental variables for used compilers. Now the file compilers.env is saved into the repo-root directory
parent fca13eb8
......@@ -51,8 +51,10 @@ if (WIN32)
set (CMAKE_CXX_COMPILER g++)
endif()
set (ENV{CC} ${CMAKE_C_COMPILER})
set (ENV{CXX} ${CMAKE_CXX_COMPILER})
# Write compiler variables to the file - to pass them to test script
file(WRITE compilers.env "export FC=${CMAKE_Fortran_COMPILER}\n")
file(APPEND compilers.env "export CXX=${CMAKE_CXX_COMPILER}\n")
file(APPEND compilers.env "export CC=${CMAKE_C_COMPILER}\n")
message ("Fortran compiler name: " ${Fortran_COMPILER_NAME})
message ("CMAKE_Fortran_COMPILER full path: " ${CMAKE_Fortran_COMPILER})
......
#!/bin/bash
. compilers.env
export FSFLAG=-I
cd src;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment