Add /usr/local/include to cmake incdirs

By default, CMake uses the system SDK on macOS as the system root by
setting the isysroot flag to clang. This setting removes /usr/local from
the include search path.
This commit is contained in:
Bryan W. Weber 2019-03-10 11:26:17 -04:00 committed by Ray Speth
parent cb008a95d7
commit 4026c17915

View file

@ -48,6 +48,7 @@ set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS})
localenv['cmake_cantera_libs'] = ' '.join(localenv['cantera_libs'])
if env['OS'] == 'Darwin':
localenv['cmake_cantera_libs'] += ' ${ACCELERATE_FRAMEWORK}'
localenv['cmake_cantera_incdirs'] += ' "/usr/local/include"'
localenv['tmpl_cantera_libdirs'] = repr([x for x in libdirs if x])
localenv['cmake_cantera_libdirs'] = ' '.join(quoted(x) for x in libdirs if x)
localenv['tmpl_cantera_linkflags'] = repr(localenv['LINKFLAGS'])