[Cmake] Bug in 2.0.2: How to do configuration specific options in the MS Visual Studio Projects

Rajiv Bhagwat brajiv at giasbm01.vsnl.net.in
Thu Jul 29 04:21:53 EDT 2004


The $(IntDir) chokes on ver 2.0.2, it works with 1.8.2, as used in the following:

IF(CMAKE_GENERATOR MATCHES "Visual Studio")
   TARGET_LINK_LIBRARIES(progname ${LIBBASE}/winbuild/$(IntDir)/libname.lib)
ELSE(CMAKE_GENERATOR MATCHES "Visual Studio")
   # Do something else to link the library.
ENDIF(CMAKE_GENERATOR MATCHES "Visual Studio")

Btw, this is a very useful feature of the CMake system, please add this ability of CMake to choose appropriate library (release/debug etc) automatically as a tip to the documentation. I found this after reading quite a few posts, and use of out-of-tree libraries is such a common thing...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20040729/fed0ac4d/attachment.htm


More information about the Cmake mailing list