Corvusoft / restbed

Corvusoft's Restbed framework brings asynchronous RESTful functionality to C++14 applications.
http://www.corvusoft.co.uk
Other
1.93k stars 377 forks source link

Why is the CMake config putting "std=gnu++14" in Clang invocations? #524

Closed Stokestack closed 2 years ago

Stokestack commented 2 years ago

Right now I can't build a project that uses Restbed on Mac. The failure appears to be due to a mismatch between GCC's std:: and Clang's. But I can't figure out why GCC is involved.

Can anyone tell me how "std=gnu++14" is ending up in the compiler command?

Thanks!

ben-crowhurst commented 2 years ago

https://github.com/Corvusoft/restbed/blob/master/CMakeLists.txt#L26

Stokestack commented 2 years ago

Thanks for that reference, but why does that specify GNU? And how do I get this thing to build on the Mac with Clang?

ben-crowhurst commented 2 years ago

Can you provide the exact build file you are using? What set of commands are you invoking to get Restbed compiled on macOS? The framework has been crossed compiled with GCC and Clang for years on macOS.

Perhaps a new issue has been raised, please provide more context?

Stokestack commented 2 years ago

Thanks for the response. I'm digging into it now, but it looks like that wasn't the problem. I did get Restbed itself to compile OK, and forgot to come back and update this issue. Sorry for any inconvenience.

Now I can't get my project to compile if it includes code generated by the OpenAPI generator for Restbed (perplexing std:: problems on both Mac and Linux), but that's not your responsibility.