[PROJ] Building release version with cmake

Bjoern Ruff br at forstware.de
Mon May 9 01:28:55 PDT 2022


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/proj/attachments/20220509/edbb5a70/attachment.htm>


More information about the PROJ mailing list