Reputation: 132128
My CMake project has several dependencies. One of the dependencies may define a target named some_target
, and may not define it. Another one of my dependencies performs certain configuration actions based on whether or not some_target
was defined:
if (TARGET some_target)
# do stuff
endif()
I can't control my dependency's CMake code, but I do want to prevent those actions from being taken, for reasons. And - I don't need some_target in my project.
My question: How can I make CMake "forget" about the some_target
target?
Upvotes: 0
Views: 33