File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 22# * C++ calling Fortran
33# * Fortran calling C++
44# * Fortran calling C
5-
5+ #
66# https://stackoverflow.com/tags/fortran-iso-c-binding/info
7-
8- # this also works between ABI compatible compilers e.g. Clang 11.0 and GCC 10.2
9-
7+ #
8+ # this also works between ABI compatible compilers
9+ # e.g. Clang and GCC.
10+ #
11+ # This also works for MacOS with Apple's Clang and Homebrew GCC,
12+ # by being sure you have in ~/.zshrc like the following:
13+ # (check directory / versions on your Mac)
14+ #
15+ # export LIBRARY_PATH=$LIBRARY_PATH:/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/lib
16+ #
17+ # export CPLUS_INCLUDE_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk/usr/include
18+ # export CXXFLAGS=-I$CPLUS_INCLUDE_PATH
19+ # export CFLAGS=$CXXFLAGS
20+ #
1021# in general, CMake >= 3.14 have better link resolution than CMake 3.13.
1122cmake_minimum_required (VERSION 3.14...3.20)
1223
You can’t perform that action at this time.
0 commit comments