PragmaTwice commented on PR #564: URL: https://github.com/apache/incubator-kvrocks/pull/564#issuecomment-1123562228
I just tested the build process in cmake 3.11, and error occurred because a feature [here](https://cmake.org/cmake/help/latest/command/install.html) in cmake 3.13 is used. > New in version 3.13: [install(TARGETS)](https://cmake.org/cmake/help/latest/command/install.html#install-targets) can install targets that were created in other directories. When using such cross-directory install rules, running make install (or similar) from a subdirectory will not guarantee that targets from other directories are up-to-date. You can use [target_link_libraries()](https://cmake.org/cmake/help/latest/command/target_link_libraries.html#command:target_link_libraries) or [add_dependencies()](https://cmake.org/cmake/help/latest/command/add_dependencies.html#command:add_dependencies) to ensure that such out-of-directory targets are built before the subdirectory-specific install rules are run. And cmake 3.13 works well. I will change the required cmake version from 3.16 to 3.13. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
