Skip to content

Commit

Permalink
gh: handle apple clang search paths
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- authored and PhilMiller committed Mar 14, 2024
1 parent 69812e3 commit 2135da4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/actions/ngen-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ runs:
echo "LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "LDFLAGS=-L/usr/local/lib" >> $GITHUB_ENV
echo "LIB=$LD_LIBRARY_PATH" >> $GITHUB_ENV
echo "INCLUDE=/usr/local/include" >> $GITHUB_ENV
echo "NETCDF=/usr/local" >> $GITHUB_ENV
fi
shell: bash
Expand Down Expand Up @@ -171,6 +170,13 @@ runs:
run: echo "FC=gfortran-13" >> $GITHUB_ENV
shell: bash

- name: Setup macOS Default Compiler Includes
if: runner.os == 'macOS'
run: |
echo "C_INCLUDE_PATH=/usr/local/include" >> $GITHUB_ENV
echo "CPLUS_INCLUDE_PATH=/usr/local/include" >> $GITHUB_ENV
shell: bash

- name: Cmake Initialization
id: cmake_init
run: |
Expand Down
6 changes: 3 additions & 3 deletions include/core/mediator/UnitsHelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
// See PR #725 for context on this issue.

#if defined(__has_include)
# if __has_include(<udunits2.h>)
# include <udunits2.h>
# elif __has_include(<udunits2/udunits2.h>)
# if __has_include(<udunits2/udunits2.h>)
# include <udunits2/udunits2.h>
# else
# include <udunits2.h>
# endif
#else
# include <udunits2.h>
Expand Down

0 comments on commit 2135da4

Please sign in to comment.