Re: [CMake] failing target

2012-03-06 Thread Andrea Crotti
On 03/06/2012 03:29 PM, David Cole wrote: On Tue, Mar 6, 2012 at 10:24 AM, Andrea Crotti The explanation is simple: if you have two targets and they run in *random* order, then it will be "correct" 50% of the time... Or perhaps 100% on one platform and 0% on another. That's likely what you were

Re: [CMake] failing target

2012-03-06 Thread David Cole
On Tue, Mar 6, 2012 at 10:24 AM, Andrea Crotti wrote: > On 03/06/2012 02:07 PM, Andrea Crotti wrote: >> >> >> >> I opened a thread some time ago about this, and I actually thought it >> was a bug in the documentation, because then why everything works >> otherwise? >> >> This simple example which

Re: [CMake] failing target

2012-03-06 Thread Andrea Crotti
On 03/06/2012 02:07 PM, Andrea Crotti wrote: I opened a thread some time ago about this, and I actually thought it was a bug in the documentation, because then why everything works otherwise? This simple example which I produced add_custom_target(a ${CMAKE_COMMAND} -E echo "a" ) add_cu

Re: [CMake] failing target

2012-03-06 Thread Andrea Crotti
On 03/06/2012 02:01 PM, Michael Hertling wrote: Yes, the DEPENDS clause of ADD_CUSTOM_TARGET() is only for *file* dependencies, but you use it for *target* dependencies. According to the documentation of ADD_CUSTOM_TARGET(): "Dependencies listed with the DEPENDS argument may reference files and

Re: [CMake] failing target

2012-03-06 Thread Michael Hertling
On 03/06/2012 02:47 PM, Andrea Crotti wrote: > On 03/06/2012 01:45 PM, Michael Hertling wrote: >> >> Could you post the lines which define those targets psi.utility_install >> and install_all_eggs, or is this quite tricky, too? Do these lines stem >> from the same CMakeLists.txt? IIRC, the "no rule

Re: [CMake] failing target

2012-03-06 Thread Andrea Crotti
On 03/06/2012 01:45 PM, Michael Hertling wrote: Could you post the lines which define those targets psi.utility_install and install_all_eggs, or is this quite tricky, too? Do these lines stem from the same CMakeLists.txt? IIRC, the "no rule to make... needed by" error occurs when there's somethi

Re: [CMake] failing target

2012-03-06 Thread Michael Hertling
On 03/06/2012 12:21 PM, Andrea Crotti wrote: > On 03/06/2012 07:23 AM, Michael Hertling wrote: >> On 03/05/2012 05:59 PM, Andrea Crotti wrote: >>> I'm having the following behaviour, and I can't quite understand the >>> error message: >>> >>> .. >>> Built target psi.utility_install >>> .. >>> make[

Re: [CMake] failing target

2012-03-06 Thread Andrea Crotti
On 03/06/2012 07:23 AM, Michael Hertling wrote: On 03/05/2012 05:59 PM, Andrea Crotti wrote: I'm having the following behaviour, and I can't quite understand the error message: .. Built target psi.utility_install .. make[3]: *** No rule to make target `psi.utility_install', needed by `CMakeFile

Re: [CMake] failing target

2012-03-05 Thread Michael Hertling
On 03/05/2012 05:59 PM, Andrea Crotti wrote: > I'm having the following behaviour, and I can't quite understand the > error message: > > .. > Built target psi.utility_install > .. > make[3]: *** No rule to make target `psi.utility_install', needed by > `CMakeFiles/install_all_eggs'. Stop. > mak

[CMake] failing target

2012-03-05 Thread Andrea Crotti
I'm having the following behaviour, and I can't quite understand the error message: .. Built target psi.utility_install .. make[3]: *** No rule to make target `psi.utility_install', needed by `CMakeFiles/install_all_eggs'. Stop. make[2]: *** [CMakeFiles/install_all_eggs.dir/all] Error 2 make[