Re: [CMake] Problem with IMPORTED_LINK_INTERFACE_LIBRARIES_config

2012-06-25 Thread Michele Santullo
On 06/22/2012 02:18 PM, Michele Santullo wrote: Thanks for the suggestion. We just tried that but unfortunately it doesn't change anything. Using IMPORTED_LINK_INTERFACE_LIBRARIES adds the library to every target build, but either IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG and

[CMake] Problem with IMPORTED_LINK_INTERFACE_LIBRARIES_config

2012-06-22 Thread Michele Santullo
Hello, I need to add some linker dependencies to a static lib I'm importing into our project. I need to do that on a per-target basis, but the following is not working: add_library(GameNet STATIC IMPORTED) # our code built in another project and imported by the current one add_library(Library

Re: [CMake] Problem with IMPORTED_LINK_INTERFACE_LIBRARIES_config

2012-06-22 Thread Petr Kmoch
Hi Michele, I don't know how it is in this particular case, but some configuration-specific variable, property etc. names are case-sensitive. I believe the default configuraions are called Debug and Release. You could try setting IMPORTED_LINK_INTERFACE_LIBRARIES_Debug. Petr On Fri, Jun 22,

Re: [CMake] Problem with IMPORTED_LINK_INTERFACE_LIBRARIES_config

2012-06-22 Thread Michele Santullo
Thanks for the suggestion. We just tried that but unfortunately it doesn't change anything. Using IMPORTED_LINK_INTERFACE_LIBRARIES adds the library to every target build, but either IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG and IMPORTED_LINK_INTERFACE_LIBRARIES_Debug seem to be just ignored.