Changes between Version 6 and Version 7 of BuildingWindowsDependencies


Ignore:
Timestamp:
Jul 6, 2017, 10:30:47 PM (7 years ago)
Author:
Itms
Comment:

Properly fix the lib names for zlib

Legend:

Unmodified
Added
Removed
Modified
  • BuildingWindowsDependencies

    v6 v7  
    249249* CMake GUI-based build:
    250250        * [http://www.zlib.net/ Download zlib source] .zip and extract somewhere (`X:\path\to\zlib-x.x.x`)
     251        * We will start by fixing the target name for the built library. In `X:\path\to\zlib-x.x.x\CMakeLists.txt`, find the line that adds the `1` to the DLL name.
     252{{{
     253Replace:
     254set_target_properties(zlib PROPERTIES SUFFIX "1.dll")
     255by:
     256set_target_properties(zlib PROPERTIES OUTPUT_NAME "zlib1")
     257}}}
     258        That way, the debug DLL will be called `zlib1d.dll` and not `zlibd1.dll`. See https://github.com/madler/zlib/issues/273.
    251259        * Open cmake-gui (v3.8 in this example)
    252260        * Set source location to the `X:\path\to\zlib-x.x.x` folder
     
    265273        * Repeat for '''Release''' configuration
    266274        * `zlib-x.x.x\install` should contain all the newly built libs
    267         * Rename the static libs to add the `1` to the file names. The name of the debug DLL must stay `zlibd1.dll`.