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.hoef...@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)


_______________________________________________
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

Reply via email to