[CMake] include_regular_expression question(Ubuntu CMake-2.6-patch0)
Pavel Shevaev
pacha.shevaev at gmail.com
Mon Feb 16 13:48:45 EST 2009
On Sun, Feb 15, 2009 at 11:02 PM, Pavel Shevaev <pacha.shevaev at gmail.com> wrote:
> Sorry folks, I'm replying to myself - I think I've found a solution:
> mark directory containing infrequently changing paths using
> "set_directory_properties", e.g:
>
> set_directory_properties(PROPERTIES INCLUDE_REGULAR_EXPRESSION "^$")
And again I'm replying to myself, sorry :( set_directory_properties
didn't work neither for some reason :(
The workaround I'm using now is the following command:
include_regular_expression("^.*(h|cpp)$")
It works for boost since it uses .hpp extension for headers while my
project uses .h extension... It's kinda a hack, but it works and this
alone has *dramatically* sped up dependency checks. Basically, these
checks cost nothing now.
--
Best regards, Pavel
More information about the CMake
mailing list