-
Notifications
You must be signed in to change notification settings - Fork 62
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
CMakeLists.txt does properly native MacOS with Xcode #32
Comments
Would it be correct to rename this issue as follows: "Fails to build under MacOS with XCode"? |
Sure. I just renamed it. |
I had no trouble building on MacOS/Xcode using the develop branch. Here are the steps I used:
|
Sorry, I wasn't clear. I wasn't referring to the Xcode as a generator. There is an issue when using the native compiler for Makefile generation. That is why I didn't use Xcode as the original subject. cmake -DBoost_NO_BOOST_CMAKE=true -G "Unix Makefiles" .. The -std option is never passed to the compiler and so there will be errors like: boostache/include/boost/boostache/vm/traits.hpp:76:32: error: But: is fine, assuming one's path is pointing to different compilers than the native ones provided by Xcode. |
I'm not seeing this issue... For Unix Makefiles it finds (without my help) /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ I used I wonder if it's an Xcode setup issue. I did have to do |
The logic in the CMakeLists.txt doesn't recognize the native MacOS (Xcode) compiler as a clang compiler. The result is that the examples won't build as the search paths and compiler options are wrong.
The work around is to specify a true clang/llvm compiler when running cmake.
The text was updated successfully, but these errors were encountered: