[CMake] Tricky question once more

Alexander Neundorf a.neundorf-work at gmx.net
Fri May 8 14:00:26 EDT 2009


On Tuesday 05 May 2009, Denis Scherbakov wrote:
> I have checked cmGlobalGenerator.cxx and its CheckLocalGenerators
> function. This seems to the right place to perform all checks.
>
> I think I could make a global variable CMAKE_ALLOW_PARTIAL_PROJECT_TREE,
> which I could check in this function. If a target has a failed dependency,
> then I should rewrite this target and make it just "cmake -E echo This
> target cannot be built."

I'd recommend to go with Andreas' suggestions, failing that silently is 
probably bad.

Alex


More information about the CMake mailing list