I resolved my problem using this command

add_custom_target( deb )
add_custom_command( TARGET deb
   COMMAND ${CMAKE_MAKE_PROGRAM} subproject1_deb
   COMMAND ${CMAKE_MAKE_PROGRAM} subproject2_deb )

instead of using DEPENDS, but it looks ugly ^^

On 6/27/07, David Cole <[EMAIL PROTECTED]> wrote:

What is the error output now that you have removed the comma?

On 6/27/07, Mehdi Rabah <[EMAIL PROTECTED] > wrote:

> Quoting Mehdi Rabah <mehdi.rabah at gmail.com
> > <http://www.cmake.org/mailman/listinfo/cmake>>:
> >
> > >* Hello,*
> > >
> > **>* I'm seeking for help for a weird error that is happening to me.*
> > >* I have a cmake project, with a lot of target, two of them are named
> > *
> > > * subproject1_deb, and subproject2_deb*
> > >
> > **>* $ make help:*
> > >* The following are some of the valid targets for this Makefile:*
> > >* ... all (the default if no target is provided) *
> > >* ... clean*
> > >* ... depend*
> > >* ... deb*
> > >* ... edit_cache*
> > >* ... install*
> > >* ... install/local*
> > >* ... list_install_components*
> > >* ... package*
> > >* ... package_source*
> > >* ... rebuild_cache*
> > >* ... deb_destdir_install*
> > >* ... hugr_deb*
> > >* ... iplimage_deb*
> > >
> > **>* The deb target is declared as the following: *
> > >
> > **>* ADD_CUSTOM_TARGET ( deb*
> > >* DEPENDS subproject1_deb, subproject2_deb )*
> > >
> > **>* but when I try to make the deb target, here the error I get: *
> > >
> > **>* Built target subproject1_deb*
> > >* make[3]: *** No rule to build target « ../subproject2_deb, »,
> > needed for «*
> > >* CMakeFiles/deb ». Stop. (translated)*
> > >
> > * * >* But, when I type make subproject2_deb, everything is ok.*
> > >
> > **>* Do you have a clue of what am I doing wrong ?*
> > >* I am using a script to generate subprojects_deb (debian packages).
> > *
> > >* http://vtk.org/Wiki/CMakeUserUseDebian*
> > **
> > You have a spurious comma. It should be:
> > ADD_CUSTOM_TARGET ( deb DEPENDS subproject1_deb subproject2_deb )
> >
>
> Thanks, but the comma was not the problem
>
>
> _______________________________________________
> 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