Re: [CMake] Is it safe to add properties to custom target?

2009-12-11 Thread David Cole
On Fri, Dec 11, 2009 at 3:55 AM, Marcel Loose lo...@astron.nl wrote: On Thu, 2009-12-10 at 22:24 +0100, Alexander Neundorf wrote: On Wednesday 09 December 2009, Marcel Loose wrote: Hi all, In fact the subject title says it all. Is it safe to do, for example:

Re: [CMake] Is it safe to add properties to custom target?

2009-12-10 Thread Alexander Neundorf
On Wednesday 09 December 2009, Marcel Loose wrote: Hi all, In fact the subject title says it all. Is it safe to do, for example: add_custom_target(myTarget) set_target_properties(myTarget PROPERTIES LOCATION ${CMAKE_CURRENT_BINARY_DIR}) It seems to work fine, but I'm not sure this is

[CMake] Is it safe to add properties to custom target?

2009-12-09 Thread Marcel Loose
Hi all, In fact the subject title says it all. Is it safe to do, for example: add_custom_target(myTarget) set_target_properties(myTarget PROPERTIES LOCATION ${CMAKE_CURRENT_BINARY_DIR}) It seems to work fine, but I'm not sure this is the right way to do it. Best regards, Marcel Loose.