As a rule of thumb, C compilers will ignore header files when passed through the commandline, and CMake does the same.