[CMake] How to avoid continuous download while using ExternalProjects

Philip Lowman philip at yhbt.com
Sat Feb 13 16:16:07 EST 2010


On Thu, Feb 11, 2010 at 12:00 PM, Luigi Calori <l.calori at cineca.it> wrote:
>> Also, for any that are interested, beta releases of zlib now have a
>> CMakeLists.txt in them.  It could use testing on Mac OSX and other
>> unix systems.
>> http://zlib.net/current/beta/
>>
>
> Did you tried that? I' did but seem to have a strange error on linking their
> examples:
> I got
> zlib.lib(gzlib.obj) : error LNK2019: unresolved external symbol _snprintf
> referenced in function _gzdopen
>
> that seem to get away by adding
> #  define snprintf _snprintf
> to gzguts.h
> Anyone has ever tested it under MSVC? It would be nice to have helpers to
> build patches, as in CMakePorts...

I was testing it on MSVC but it seems like they keep checking in code
which breaks MSVC every 1.2.3.X and I haven't been checking X
consistently.  Your above comment is an example.  If only they had a
dashboard... sigh.

-- 
Philip Lowman


More information about the CMake mailing list