Re: [CMake] debug, optimized, and custom

2009-03-02 Thread Dmytro Ovdiienko
Hi, Suppose, IMPORTED libraries should help. Following is text from CMake manual: Higher granularity may be achieved for per-configuration rules by creating and linking to IMPORTED library targets. See the IMPORTED mode of the add_library command for more information. See also http://www.cmake.o

Re: [CMake] debug, optimized, and custom

2009-03-02 Thread Hendrik Sattler
Am Montag 02 März 2009 18:24:32 schrieb Dmytro Ovdiienko: > if I have several configurations (e.g. /MT, /MTd, /MD, /MDd), how can I > pass additional libraries to the target_link_libraries? I have two > optimized libaries. One for /MT and one for /MD. That depends if you want to link statically or

Re: [CMake] debug, optimized, and custom

2009-03-02 Thread Dmytro Ovdiienko
All, if I have several configurations (e.g. /MT, /MTd, /MD, /MDd), how can I pass additional libraries to the target_link_libraries? I have two optimized libaries. One for /MT and one for /MD. Thanks, Dima 2009/2/25 > On Wed, Feb 25, 2009 at 1:38 AM, Hendrik Sattler > wrote: > debug and optim

Re: [CMake] debug, optimized, and custom

2009-02-25 Thread jesseperla
On Wed, Feb 25, 2009 at 1:38 AM, Hendrik Sattler wrote: debug and optimized keywords are followed by _one_ library. The help entry defines this correctly. Thanks and sorry I missed that in the help. cmake really is amazing, but I also find it massive. The "Mastering Cmake" book is excellent,

Re: [CMake] debug, optimized, and custom

2009-02-24 Thread Hendrik Sattler
Am Mittwoch 25 Februar 2009 05:26:57 schrieb Jesse Perla: > If I add on my own value to CMAKE_CONFIGURATION_TYPES so that I can have > a separate build type in visual studio, etc. with compile time choice of > build types, then how do I change the target_link_libraries to for this new > build typ

[CMake] debug, optimized, and custom

2009-02-24 Thread Jesse Perla
If I add on my own value to CMAKE_CONFIGURATION_TYPES so that I can have a separate build type in visual studio, etc. with compile time choice of build types, then how do I change the target_link_libraries to for this new build type? One last comment on my last post. If I did: target_link_libr