2008/1/23, Sylvain Jaume <[EMAIL PROTECTED]>:
> Hi,
>
> How can I link to mylib.dll in Release and mylibd.dll in Debug?
> I use VS8 and both libraries are in the same directory.
I don't if it would work for VS8 but I would try:
IF("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
SET(MYLIB "mylibd")
ELSE("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
SET(MYLIB "mylib")
ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
TARGET_LINK_LIBRARIES(MY_EXE ${MYLIB})
--
Erk
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake