cmake-conan
cmake-conan copied to clipboard
macos: autoconf failures
i ran into an issue related to #226 and friends:
when running cmake/conan from terminal and autoconf based recipes are compiled, we run into the issue that /Applications/Xcode11.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc is called as c compiler, not /usr/bin/clang. while the trampoline binary in /usr/bin will be able to resolve standard c headers, the executable in the app bundle needs to set SDKROOT
i'm wondering what's a good strategy for this without modifying the recipes?
as a temporary workaround
set(ENV{SDKROOT} "${CMAKE_OSX_SYSROOT}")
seems to work. maybe this would also be a strategy for #226?
Hi @timblechmann, Did this issue happen using the develop version of cmake-conan or v0.15? Thanks!