Closed jxsl13 closed 1 year ago
IMO the whole CMakeLists.txt should be rewritten for newer CMake versions to better support inclusion in other projects. I forked this (and tacopie, which basically duplicates all build files) since I'd like to use this as a submodule. The whole branch is currnetly probably too large for a single merge, cmake_minimum_required() is currently based on what I had on hand, and I didn't have the time to test any Windows builds. Tried an arm cross compile on Yocto and everything went smoothly, though.
I'd like to know if there actually are developers who are forced to use CMake < 3, but still wish to use cpp_redis.
cpp-redis & tacopie issue
I'm using this library in a project, that uses CMP0048 NEW policy and getting warnings regarding that:
I'm building my project with AppVeyor and it's explicitly handling warnings as errors and turning that off seems to be a bad option security-wise.
A litte bit of googling told me that this might help? https://github.com/Tencent/rapidjson/issues/1154#issuecomment-354762193
Edit: https://github.com/SRombauts/SQLiteCpp/issues/184#issue-410282500
It seems to be a bad idea to use POLICY OLD, as it will be deprecated in the future. Setting a proper version number seems to be the correct way to solve this.