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
[email protected]
https://lists.osgeo.org/mailman/listinfo/proj

--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
PROJ mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/proj

Reply via email to