Closed prybicki closed 1 year ago
I've had this issue in a separate project when I updated CMake on my machine. You should be able to prevent those from being created by doing set_property(GLOBAL PROPERTY CTEST_TARGETS_ADDED 1)
in your CMake, before calling enable_testing()
.
Thanks, @sayo9394, it worked for me. Adding it just before enable_testing()
did not work, but putting it in just after project(...)
and before including dependencies (find_package(...)
and add_subdirectory(...)
) worked perfectly.
I am using
yaml-cpp
in my project usingFetchContent
. I noticed that Makefile is polluted with targets such as:This causes CMake-based IDE such as CLion to show irrelevant targets:
I have attempted to silence this down by:
This works partially - e.g.
yaml-cpp-parse
disappears as expected, but targets Continuous, Experimental, Nightly* remain. Any ideas on how these targets can be disabled?