[CMake] TARGET_LINK_LIBRARIES debug optimized visual studio 2010
Louis Hoefler
louis.hoefler at gmx.de
Fri Jul 29 12:22:56 EDT 2011
I tried that and now I get
for the debug libraries:
...;wtdwthttpd.lib;...
for the release libraries:
...;wtwthttp.lib;...
I want it to look like
...;wt.lib;wthttp.lib;... or ...;wtd.lib;wthttpd.lib;...
my version somehow adds one release
library to the debug configuration and
vice versa (...;wthttpd.lib;wt.lib;wthttp.lib;...).
Sorry for not mentioning this.
Thank you, Louis
Am 29.07.2011 18:12, schrieb David Cole:
> Don't put a space in between the "wt" and the "${BACKENDLIB}" ... ?
>
> Use this instead:
>
> IF(WIN32)
> TARGET_LINK_LIBRARIES(construction.wt
> debug wtd${BACKENDLIB}d
> optimized wt${BACKENDLIB})
> ELSE(WIN32)
> TARGET_LINK_LIBRARIES(construction.wt wt${BACKENDLIB})
> ENDIF(WIN32)
>
> Just a guess since I don't really know what you're expecting...
>
>
> On Fri, Jul 29, 2011 at 12:02 PM, Louis Hoefler<louis.hoefler at gmx.de> wrote:
>> Hello everyone.
>> I try to set a specific library for the debug and release configuration.
>>
>> I try to do it this way:
>> IF(DEFINED USEFCGI)
>> SET(BACKENDLIB wtfcgi)
>> ELSE(DEFINED USEFCGI)
>> SET(BACKENDLIB wthttp)
>> ENDIF(DEFINED USEFCGI)
>>
>> IF(WIN32)
>> TARGET_LINK_LIBRARIES(construction.wt
>> debug wtd ${BACKENDLIB}d
>> optimized wt ${BACKENDLIB})
>> ELSE(WIN32)
>> TARGET_LINK_LIBRARIES(construction.wt wt ${BACKENDLIB})
>> ENDIF(WIN32)
>>
>>
More information about the CMake
mailing list