Re: [CMake] cmake policy CMP0022 error

2013-10-25 Thread Stephen Kelly
Clinton Stimpson wrote: I have a target where I do this: SET_TARGET_PROPERTIES(mytarget PROPERTIES LINK_INTERFACE_LIBRARIES ) to hide 3rd party libraries from the link interface. When I do if(APPLE) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) endif() I get an error at generate time.

Re: [CMake] cmake policy CMP0022 error

2013-10-25 Thread Clinton Stimpson
On Friday, October 25, 2013 08:40:41 AM Stephen Kelly wrote: Clinton Stimpson wrote: I have a target where I do this: SET_TARGET_PROPERTIES(mytarget PROPERTIES LINK_INTERFACE_LIBRARIES ) to hide 3rd party libraries from the link interface. When I do if(APPLE)

Re: [CMake] cmake policy CMP0022 error

2013-10-25 Thread Stephen Kelly
Clinton Stimpson wrote: I'm trying to point out that I did not get a warning when I was using cmake_minimum_required(VERSION 2.8) set_target_properties(mytarget PROPERTIES LINK_INTERFACE_LIBRARIES ) with CMake 2.8.12. That looks like a bug. The policy warning is only issued if 1) Both

[CMake] cmake policy CMP0022 error

2013-10-23 Thread Clinton Stimpson
I have a target where I do this: SET_TARGET_PROPERTIES(mytarget PROPERTIES LINK_INTERFACE_LIBRARIES ) to hide 3rd party libraries from the link interface. When I do if(APPLE) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12) endif() I get an error at generate time. This is different than my previous