3 ms·
I think main issue was that it was embedded in the file itself like that. Would have preferred to have it in a separate valid C file with syntax highlighting et
by mewpmewp2 3y ago
I think main issue was that it was embedded in the file itself like that. Would have preferred to have it in a separate valid C file with syntax highlighting etc and being parsed from that file.
- tsimionescu 3y agoPerhaps, but given how most build systems work, that would complicate things in other ways (since build systems often try to compile all .c files).
- throwaway2037 3y agoI am a CMake novice. Is that true for CMake in this example?
- jcelerier 3y agoDefinitely not, cmake's try_compile function even directly supports being passed a source file.
- mewpmewp2 3y agoPut it in a special folder that is ignored from the build.
- account42 3y agoThat's really not how most build systems work.