OSX Fortran library uses g++

For fun, try to make the library use g++, perhaps that will resolve the issues on osx with the fortran example
This commit is contained in:
Ian Bell
2014-11-25 15:35:28 -05:00
parent e236d44989
commit 1b8d7c6bc2

View File

@@ -398,9 +398,9 @@ def fortranFactory(platform=1,bitness=1):
exec_cmd = "./main"
elif platform==platformID["osx"]:
if bitness==bitnessID["32bit"]:
cmake_args = ["-DCOOLPROP_EXTERNC_STATIC_LIBRARY=ON"]
cmake_args = ["-DCOOLPROP_EXTERNC_STATIC_LIBRARY=ON",'-DCMAKE_C_COMPILER="g++"','-DCMAKE_CXX_COMPILER="g++"']
else:
cmake_args = ["-DCOOLPROP_EXTERNC_STATIC_LIBRARY=ON"]
cmake_args = ["-DCOOLPROP_EXTERNC_STATIC_LIBRARY=ON",'-DCMAKE_C_COMPILER="g++"','-DCMAKE_CXX_COMPILER="g++"']
cp_cmd = "cp *.f90 ../../../build/"
build_cmd = "gfortran -c -Wall cpinterface.f90 cool_fortran_bind.f90"
link_cmd = "gfortran -o main *.o libCoolProp.a -lc++ -ldl"