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:
parent
cb008a95d7
commit
4026c17915
1 changed files with 1 additions and 0 deletions
|
|
@ -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'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue