[CMake] VS Project Question
Surya Kiran Gullapalli
suryakiran.gullapalli at gmail.com
Mon Mar 31 23:26:23 EDT 2008
>
> I use the following code for MSVC2003.Net. Not sure if it works on VS2005
> or VS2008:
> IF (BUILD_SHARED_LIBS)
> IF (WIN32)
> SET(LIB_RELEASE_NAME "expatdll")
> SET(LIB_DEBUG_NAME "expatdll_D")
> ELSE (WIN32)
> SET(LIB_RELEASE_NAME "expat")
> SET(LIB_DEBUG_NAME "expat_D")
> ENDIF(WIN32)
> ELSE (BUILD_SHARED_LIBS)
> IF (WIN32)
> SET(LIB_RELEASE_NAME "libexpat")
> SET(LIB_DEBUG_NAME "libexpat_D")
> ELSE (WIN32)
> SET(LIB_RELEASE_NAME "expat")
> SET(LIB_DEBUG_NAME "expat_D")
> ENDIF(WIN32)
> ENDIF (BUILD_SHARED_LIBS)
>
You can do some thing like this
SET_TARGET_PROPERTIES (${LIBNAME} PROPERTIES
DEBUG_POSTFIX "_D"
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080401/024fb94c/attachment-0001.htm>
More information about the CMake
mailing list