Need to set `-ObjC++` in CMAKE_OBJCXX_FLAGS
In our project we have some ObjC++ files that ends with the extension .cpp
(they are actually C++ on non Mac platforms). To handle this with the recent changes we set the LANGUAGE
property on these files. Unfortunately this causes clang still to treat these files as C++. I was able to fix this by doing this:
set(CMAKE_OBJCXX_FLAGS "${CMAKE_OBJCXX_FLAGS} -ObjC++")
But the question is if this should maybe be done by CMake instead?