Comment by tsimionescu
3 years 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).
3 years 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).
That's really not how most build systems work.
I am a CMake novice. Is that true for CMake in this example?
Definitely not, cmake's try_compile function even directly supports being passed a source file.
Put it in a special folder that is ignored from the build.