[CMake] How to findXXX libraries with debug suffix

Luigi Calori l.calori at cineca.it
Tue Feb 9 07:10:33 EST 2010


Is there a way to instruct FindXXX modules to produce variables that 
have different linking in debug and release?

I am producind a lib with suffix D (zlib) in an  ExternalProjetAdd, 
target.It gets installed correctly in debug (which is the default for VS 
cmake--build)
This zlibD.lib does not get found when other projects subsequently 
issues a find_package(ZLIB )

Are there Find modules that supports debug/release?

Any example of this usage pattern?

Thanks

Luigi


More information about the CMake mailing list