Hello,

I have a project with the following dependency :

executable -> static library -> static library module1 , ..., static library
module n

The executable depends on the static library. The library depends on the
modules
(which are also static libraries).

An archive with the project is attached.

What I want to do, is :
When the sources (*.c) of a module are not present the build system should
copy an
already built module (static library) from a "Storage" location and insert
it into
the build process.

If the project is built with all sources then everything is ok.
When one or more sources from the modules are missing then I receive a
dependency error (when NMake Makefiles and Unix Makefiles generator are
used,
with Visual Studio generator it works fine) :

make[2]: *** No rule to make target `library/modules/module1', needed by
`bin/executable'.  Stop.

Thank you.

Attachment: test.tgz
Description: GNU Zip compressed data

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to