sewenew / redis-plus-plus

Redis client written in C++
Apache License 2.0
1.64k stars 351 forks source link

How to install this library in MSYS2 #337

Closed krishna116 closed 2 years ago

krishna116 commented 2 years ago

Describe the problem I cannot install this library in MSYS2(www.msys2.org), the install path has partial error.

Environment:

Additional context Download and build it in msys2 environment: 1, git clone https://github.com/sewenew/redis-plus-plus.git -b 1.3.3 2, source shell mingw64 3, cd redis-plus-plus 4, cmake -S . -B build -G "MinGW Makefiles" -DREDIS_PLUS_PLUS_CXX_STANDARD=17 5, cmake --install build --prefix /mingw64 Error happened here: image

krishna116 commented 2 years ago

After some test, I got the solution, using follow command to config cmake: cmake -S . -B build -G "MinGW Makefiles" -DREDIS_PLUS_PLUS_CXX_STANDARD=17 -DCMAKE_INSTALL_PREFIX="/mingw64" thanks.