天道酬勤,学无止境

meson-build

'cmake rebuild_cache' for *just* a subdirectory?

Question I have an issue with the generation of makefiles stage of CMake being slow which is similar to this unanswered question: CMake is slow to generate makefiles My project is made up of a top level CMakeLists.txt file which uses add_subdirectory() to add various subprojects for individual library and executable components. For a given component, the CMakeLists.txt file contains something like: add_library(mylib SHARED sourceFile1.cpp sourceFile2.cpp ... ) I can build just the contents of that directory using: make mylib If I modify the CMakeLists.txt file in the sub-directory (which I've

2021-05-09 01:39:19    分类:技术分享    build   cmake   build-process   meson-build