ARTICLE AD BOX
How can I avoid logs of build targets in dependencies of CMake?
After adding `leveldb` as dependency of my project a lot of build targets of 'leveldb' tests were added too, causing a long list of undesired information while building. Now the logs are flooded by 'leveldb' build targets like below:
...more leveldb targets before this point... [ 32%] Built target leveldb [ 33%] Built target leveldbutil [ 42%] Built target benchmark [ 43%] Built target gtest [ 44%] Built target gmock ...more leveldb targets after this point....The dependency of `leveldb` is declared as below:
FetchContent_Declare( leveldb GIT_REPOSITORY https://github.com/google/leveldb GIT_TAG ${LEVELDB_VERSION} GIT_SHALLOW TRUE) FetchContent_MakeAvailable(leveldb)