2 ms·
Perhaps, but given how most build systems work, that would complicate things in other ways (since build systems often try to compile all .c files).
by tsimionescu 3y ago
Perhaps, 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.