cmake-conan icon indicating copy to clipboard operation
cmake-conan copied to clipboard

macos: autoconf failures

Open timblechmann opened this issue 5 years ago • 2 comments
trafficstars

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?

timblechmann avatar Oct 15 '20 04:10 timblechmann

as a temporary workaround

set(ENV{SDKROOT} "${CMAKE_OSX_SYSROOT}")

seems to work. maybe this would also be a strategy for #226?

timblechmann avatar Oct 15 '20 04:10 timblechmann

Hi @timblechmann, Did this issue happen using the develop version of cmake-conan or v0.15? Thanks!

czoido avatar Nov 13 '20 15:11 czoido