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

Marcel Loose loose at astron.nl
Wed Dec 9 10:39:25 EST 2009


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.




More information about the CMake mailing list