[CMake] custom configuration types and linking with 3rd-party libs

Philip Lowman philip at yhbt.com
Tue Aug 26 07:53:31 EDT 2008


On Mon, Aug 25, 2008 at 9:27 AM, cyril_wobow <cyril at wobow.com> wrote:

> Philip Lowman a écrit :
>
>> Does LINK_INTERFACE_LIBRARIES_<CONFIG> do what you want to do?
>>
>> See
>> http://www.cmake.org/HTML/cmake-2.6.html#prop_tgt:LINK_INTERFACE_LIBRARIESin conjunction with SET_PROPERTY command.
>>
>>
>> If that works, CMake still could use a way to correlate the "debug" or
>> "optimized" target_link_libraries() directives with custom build
>> configurations. Perhaps something as simple as.
>>
>> cmake default:
>> SET(CMAKE_DEBUG_CONFIGURATIONS Debug)
>> SET(CMAKE_OPTIMIZED_CONFIGURATIONS Release;MinSizeRel;RelWithDebInfo)
>> user code:
>> LIST(APPEND CMAKE_DEBUG_CONFIGURATIONS Profile Coverage Maintainer)
>> LIST(APPEND CMAKE_OPTIMIZED_CONFIGURATIONS SuperOptimized)
>>
>> Thank you for your answer.
> Unfortunately, I don't quite get how to implement your idea :(
> Having cmake work on top of the two variables you suggested would be just
> great; can you please get more into details?


I don't know how to implement it either.  It would likely take some digging
through the source and I'm kinda busy this week.

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080826/612572f4/attachment.htm>


More information about the CMake mailing list