[PROJ] Building release version with cmake

Even Rouault even.rouault at spatialys.com
Mon May 9 02:02:25 PDT 2022


For a multiple config generator like Visual Studio (cfhttps://discourse.cmake.org/t/cmake-build-type-ignored/2230/2)

You want rather to do:

cmake --build . --config Release

Le 09/05/2022 à 10:28, Bjoern Ruff a écrit :
>
> Hello,
>
> I have build the debug version using cmake with success.
>
>                                 cmake .. -G "Visual Studio 17 2022" -A 
> Win32
>
>                                 cmake --build .
>
> Now I tried to build the release version:
>
>                                 md Release
>
>                                 cd Release
>
>                                 cmake .. -G "Visual Studio 17 2022" -A 
> Win32 -D CMAKE_BUILD_TYPE=Release -D CMAKE_CXX_FLAGS_RELEASE="/MD /O2 
> /NDEBUG" -D CMAKE_C_FLAGS_RELEASE="/MD /O2 /NDEBUG"
>
>                                 cmake --build .
>
> but the result was a debug version (identical with the first step)
>
> Has someone a idea how I can fix that?
>
> Thanks, Bjørn
>
>
> _______________________________________________
> PROJ mailing list
> PROJ at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/proj

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20220509/0259e513/attachment.htm>


More information about the PROJ mailing list