[CMake] .c file including a .c file

Bill Hoffman bill.hoffman at kitware.com
Thu Jan 25 14:53:45 EST 2007


Brandon J. Van Every wrote:
> In our PCRE library, pcre_ucp_findchar.c has
>
> #include "ucp_findchar.c"
>
> Will CMake automagically detect this dependency?  I think it would be 
> incorrect to list ucp_findchar.c as a source file, as we don't want an 
> object file to result.  I suppose I'll do ADD_DEPENDENCIES if they're 
> no automagically detected.
It should work, and ADD_DEPENDENCIES would not help even if it did not.

-Bill



More information about the CMake mailing list