-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error on configuration on MacOS #225
Comments
dforsten
added a commit
to dforsten/cmake-conan
that referenced
this issue
Apr 26, 2020
…on on MacOS The sysroot option is not set when using `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++`, needs to be added explicitly.
Pull Request with a fix submitted. |
dforsten
added a commit
to dforsten/cmake-conan
that referenced
this issue
Apr 26, 2020
…on on MacOS The sysroot option is not set when using `/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++`, needs to be added explicitly.
The compile error is present in the Travis CI logs for XCode 10 and 11 in builds before this fix. The builds do not fail, but having to scroll past these compile errors on every CMake run on MacOS is definitely annoying. |
czoido
added a commit
that referenced
this issue
Sep 3, 2020
Fix for cmake-conan issue #225 - Compile error on configuration on MacOS
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On MacOS I am getting these errors on executing
conan_cmake_run
The errors are caused by this command:
Where
${CMAKE_CXX_COMPILER}
is expanding to/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
. Unlike for/usr/bin/c++
the sysroot is not set when executing that binary, but setting the sysroot manually fixes the compile issue:The text was updated successfully, but these errors were encountered: