Denis Scherbakov a écrit :
Well at first glance it seemed to work, but in fact it is
not : A is still built before B, and fails to build missing
B.h.
Please note that this only occurs on visual studio.
Try to set B.h source file properties as GENERATED and include it into
A_SRCS. Maybe thi
> Well at first glance it seemed to work, but in fact it is
> not : A is still built before B, and fails to build missing
> B.h.
>
> Please note that this only occurs on visual studio.
Try to set B.h source file properties as GENERATED and include it into
A_SRCS. Maybe this help. Could you pr
Denis Scherbakov a écrit :
The problem is that when using visual studio, A
might be
built before B, and fails to build because B.h has
not yet
be generated.
Did you try
ADD_DEPENDENCIES(A B)
?
I have TARGET_LINK_LIBRARIES(A B), so I think the library
dependency is correctly handled. B
> >> The problem is that when using visual studio, A
> might be
> >> built before B, and fails to build because B.h has
> not yet
> >> be generated.
> >
> > Did you try
> >
> > ADD_DEPENDENCIES(A B)
> >
> > ?
>
> I have TARGET_LINK_LIBRARIES(A B), so I think the library
> dependency is corr
> The problem is that when using visual studio, A might be
> built before B, and fails to build because B.h has not yet
> be generated.
Did you try
ADD_DEPENDENCIES(A B)
?
Denis
___
Powered by www.kitware.com
Visit other Kitware open-sour
Dear cmake users and developpers,
I have two library, A and B, in two seperated subdirectories A and B.
When building B, the first step is to generate B.h and B.cxx from B.fl
using FLTK_WRAP_UI.
Now, A depends on B, and it needs B.h to compile properly.
The problem is that when using visual