https://zlib.net/zlib-1.2.11.tar.gz
I follow the steps to install the project and use the prefix in Install a Project step. But it doesnt change the install path.
cd %project%
# Generate a Project Buildsystem
cmake -G "Visual Studio 16 2019" ^
-S . ^
-B .\build
# Build a Project
cmake --build . --config Release
# Install a Project
cmake --install . --config Release --prefix ..\release
If I follow the steps, it can change the preifx path in Generate a Project step
It’s getting a bit off-topic, but the zlib project is known for being relatively unresponsive to contributions. The zlib-ng project is an alternative that aims to be better in that regard. It has a zlib API compatibility flag, for those who need it. Their README has more information.