-
Notifications
You must be signed in to change notification settings - Fork 254
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
Fix for cmake-conan issue #225 - Compile error on configuration on MacOS #226
Conversation
…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.
@@ -264,9 +264,13 @@ function(conan_cmake_detect_unix_libcxx result) | |||
endif() | |||
endforeach() | |||
|
|||
if(APPLE) | |||
set(xcode_sysroot_option "--sysroot=${CMAKE_OSX_SYSROOT}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible that CMAKE_OSX_SYSROOT is not defined? For example in iOS? I would say it is possible, and this would break for some users not in OSX. Does it make sense to test for CMAKE_OSX_SYSROOT existence instead?
(sorry this took a while to review, Conan amazing growth keeps the team very busy)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also would suggest to check CMAKE_OSX_SYSROOT
instead of APPLE
.
Also @dforsten I have added a test for this issue.
Hi @dforsten, |
Related to: #159 |
Co-authored-by: Carlos Zoido <[email protected]>
Cool! Trying to get Conan/Artifactory used more and more here at vizrt, |
The sysroot option is not set when using
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
, needs to be added explicitly.Closes: #159
Closes: #225