Re: [CMake] Check if a target has been added

2008-07-10 Thread Félix C. Morency
Thank you Alexander, the LOCATION solution worked like a charm.

Cheers,
Félix C. Morency
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Check if a target has been added

2008-07-08 Thread Félix C. Morency
Hi,

I posted a message yesterday and found out that the method wasn't quite
effective. If there any way of checking if a target has already been added
to the build chain (resetting it at each configure) ? I have lots of
projects depending on the same target and this produces makefile warnings
and VS. annoying popups.

Cheers,
Félix
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Check if a target has been added

2008-07-08 Thread Alexander Neundorf
On Tuesday 08 July 2008, Félix C. Morency wrote:
 Hi,

 I posted a message yesterday and found out that the method wasn't quite
 effective. If there any way of checking if a target has already been added
 to the build chain (resetting it at each configure) ? I have lots of
 projects depending on the same target and this produces makefile warnings
 and VS. annoying popups.

You could try to get a target property, e.g. LOCATION from the target you are 
interested in, and see what you get. 
(this may behave differently in cmake 2.4 and 2.6)

Alex
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake