Re: [CMake] Find out if a target exists?

2007-10-12 Thread Daniel
Gonzalo Garramuño wrote: I was wondering what's the best way to determine if a target exists. I wanted to modify a target's properties but depending on the type of build, it may not always exist. You could do this: GET_TARGET_PROPERTY(target_location target_name LOCATION)

[CMake] Find out if a target exists?

2007-10-11 Thread Gonzalo Garramuño
I was wondering what's the best way to determine if a target exists. I wanted to modify a target's properties but depending on the type of build, it may not always exist. -- Gonzalo Garramuño [EMAIL PROTECTED] AMD4400 - ASUS48N-E GeForce7300GT Kubuntu Edgy