RE: [CMake] Choosing between debug and release variants of third-party libraries

2007-11-14 Thread Torsten Martinsen
Bill Hoffman wrote: > The module FindQt4.cmake handles debug and release qtmain already. > See Modules/FindQt4.cmake and Modules/UseQt4.cmake for more > information. Indeed, that module *defines* QT_QTCORE_LIBRARY_RELEASE, QT_QTCORE_LIBRARY_DEBUG, etc. But that does no

RE: [CMake] Choosing between debug and release variants of third-party libraries

2007-11-13 Thread Torsten Martinsen
Philip Lowman wrote: > So you can't do something like this? > > FIND_LIBRARY(qtmain_release qtmain >PATHS "C:/lang/qt/3.3.4r/lib" NO_DEFAULT_PATH) > FIND_LIBRARY(qtmain_debug qtmain >PATHS "C:/lang/qt/3.3.4/lib" NO_DEFAULT_PATH) > > # declare your targets. >

Re: [CMake] Choosing between debug and release variants of third-party libraries

2007-11-09 Thread Bill Hoffman
Philip Lowman wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philip Lowman wrote: So you can't do something like this? FIND_LIBRARY(qtmain_release qtmain PATHS "C:/lang/qt/3.3.4r/lib" NO_DEFAULT_PATH) FIND_LIBRARY(qtmain_debug qtmain PATHS "C:/lang/qt/3.3.4/lib" NO_DEFAULT_PATH) #

Re: [CMake] Choosing between debug and release variants of third-party libraries

2007-11-09 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Philip Lowman wrote: > So you can't do something like this? > > FIND_LIBRARY(qtmain_release qtmain >PATHS "C:/lang/qt/3.3.4r/lib" NO_DEFAULT_PATH) > FIND_LIBRARY(qtmain_debug qtmain >PATHS "C:/lang/qt/3.3.4/lib" NO_DEFAULT_PATH) > > # declare

Re: [CMake] Choosing between debug and release variants of third-party libraries

2007-11-09 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Torsten Martinsen wrote: > Philip Lowman wrote: > >> Torsten Martinsen wrote: >>> I'm sure this is a FAQ, but I cannot find the answer anywhere. >>> >>> Using VS 2003, given that I have a third-party library with debug >>> a

RE: [CMake] Choosing between debug and release variants of third-party libraries

2007-11-09 Thread Torsten Martinsen
Philip Lowman wrote: > Torsten Martinsen wrote: >> I'm sure this is a FAQ, but I cannot find the answer anywhere. >> >> Using VS 2003, given that I have a third-party library with debug >> and release variants: >> >> /path/to/lib/release/lib.lib >> /path/to/lib/d

Re: [CMake] Choosing between debug and release variants of third-party libraries

2007-11-08 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Torsten Martinsen wrote: > I'm sure this is a FAQ, but I cannot find the answer anywhere. > > Using VS 2003, given that I have a third-party library with debug and release > variants: > > /path/to/lib/release/lib.lib > /path/to/lib/debug/lib