Closed toyboot4e closed 3 years ago
Both should work the same, whatever you prefer is the right way ;)
Using the file extension makes it a bit easier in mixed-source libraries, because target_compile_options(...) sets the option for the entire compilation target, not just for the sokol.c file (cmake also has "set_source_files_properties" for this though). But in this specific case (just one source file in the whole library) this doesn't matter.
Hi, I tried building with
sokol.c
and-ObjC
flag on macOS, and it compiledemo
without errors. But I'm not sure what I'm doing actually. So let me ask a question: which is preferred,sokol.m
or-ObjC
withsokol.c
? Thank you.