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 <[email protected]> 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)
>
> but the resulting libraries for debug are:
> wtd.lib;wthttpd.lib;wthttp.lib
> and for release:
> wthttpd.lib;wt.lib;wthttp.lib
>
> what am I doing wrong here?
>
> Thank you again, Louis
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake