-
Notifications
You must be signed in to change notification settings - Fork 122
OS X CMake isysroot notes
Owen Arnold edited this page Aug 30, 2019
·
1 revision
The issue described here with the effect that: CMake always adds -isysroot explicitly to get the macosx SDK. This behaviour that was once required to get anything to compile on the command line. One can see that the flag affects whether /usr/local/include is considered an implicit include directory by the compiler
Unfortunately, unsetting the CMAKE_OSX_SYSROOT
like so -DCMAKE_OSX_SYSROOT="/"
does not work as it affects the FindOpenGL.cmake
modules ability to find OpenGL.
Setting the following env variable prior to running cmake does work.
export CXXFLAGS=-isystem\ /usr/local/include