Skip to content

Commit 971b374

Browse files
committed
doc
1 parent d223829 commit 971b374

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

CMakeLists.txt

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,22 @@
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.
1122
cmake_minimum_required(VERSION 3.14...3.20)
1223

0 commit comments

Comments
 (0)