On 6/9/07, Brandon Van Every <[EMAIL PROTECTED]> wrote:

On 6/9/07, Clark J. Wang <[EMAIL PROTECTED]> wrote:
> ADD_CUSTOM_COMMAND(
>     OUTPUT ${hellolib} ${helloexe}
>     COMMAND make -C ${hellodir}
>     COMMAND cp ${hellodir}/libhello.so ${hellolib}
>     COMMAND cp ${hellodir}/hello ${helloexe}
> )

Unfortunately you've discovered the difference between file level
dependencies and target level dependencies.  You're going to need an
ADD_CUSTOM_TARGET and an ADD_DEPENDENCIES.


It works. Thank you so much.

Unfortunately the FAQ
doesn't have an entry for this, and I'm too tired to write one.


Cheers,
Brandon Van Every
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to