CMake ignores set_target_properties(... LANGUAGE)
I must be doing something wrong here. I am using CMake version 3.21.4, as installed on macOS by homebrew.
I have
set_source_files_properties(main.cpp PROPERTIES LANGUAGE OBJCXX)
However, this is what it generates in Xcode:
D3C97131E3C645A8BDE19ABD /* main.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.cpp; fileEncoding = 4; name = main.cpp; path = main.cpp; sourceTree = SOURCE_ROOT; };
I've looked at the source code, and barring something really strange, I would expect this to work. Therefore I must be doing something incorrect?