Re: [CMake] How to findXXX libraries with debug suffix

2010-02-14 Thread Alexander Neundorf
On Tuesday 09 February 2010, Mike Jackson wrote: Here is one I wrote for Expat: --8 # - Find expat # Find the native EXPAT headers and libraries. # # EXPAT_INCLUDE_DIRS - where to find expat.h, etc. # EXPAT_LIBRARIES- List of

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-11 Thread Philip Lowman
On Wed, Feb 10, 2010 at 10:49 AM, Will Dicharry wdicha...@stellarscience.com wrote: My only other comment is that some modules already use the following form (usually due to someone adding DEBUG support later) FOO_LIBRARY (cache variable) FOO_LIBRARY_DEBUG (cache variable) FOO_LIBRARIES

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-10 Thread Will Dicharry
Responses in line... Philip Lowman wrote: On Tue, Feb 9, 2010 at 11:15 AM, Will Dicharry wdicha...@stellarscience.com wrote: Mike Jackson wrote: Here is one I wrote for Expat: --8 # - Find expat # Find the native EXPAT headers and

[CMake] How to findXXX libraries with debug suffix

2010-02-09 Thread Luigi Calori
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

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-09 Thread Mike Jackson
Here is one I wrote for Expat: --8 # - Find expat # Find the native EXPAT headers and libraries. # # EXPAT_INCLUDE_DIRS - where to find expat.h, etc. # EXPAT_LIBRARIES- List of libraries when using expat. # EXPAT_LIBRARY_DEBUG - Debug

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-09 Thread Luigi Calori
Hi Mike, thanks for the code, I' ll try to understand it and to apply to my need... I see is quite more complex than the statndard FindExpat bundled with CMake: Is it customized to your need or just better? In the latter case, why not ship cmake with it? Is testing for debugging libs a very

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-09 Thread Mike Jackson
From my own experience there are very few projects that can be configured to have an installation of both debug and release libraries in the same installation tree. Qt was the first one that I have seen but there are a few others. After going through pain on windows where ALL libraries MUST be

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-09 Thread Mike Jackson
My version of Tiff is at: http://www.bluequartz.net/cgi-bin/gitweb/gitweb.cgi There are zlib and tiff entries there. There is also a project called CxImage (which I kind of hijacked from the original author) that includes zlib, tiff, jpeg and png as support files in the project and builds all of

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-09 Thread Will Dicharry
Mike Jackson wrote: Here is one I wrote for Expat: --8 # - Find expat # Find the native EXPAT headers and libraries. # # EXPAT_INCLUDE_DIRS - where to find expat.h, etc. # EXPAT_LIBRARIES- List of libraries when using expat. #

Re: [CMake] How to findXXX libraries with debug suffix

2010-02-09 Thread Philip Lowman
On Tue, Feb 9, 2010 at 11:15 AM, Will Dicharry wdicha...@stellarscience.com wrote: Mike Jackson wrote: Here is one I wrote for Expat: --8 # - Find expat # Find the native EXPAT headers and libraries. # #  EXPAT_INCLUDE_DIRS - where to