![]() Targets like this would not be built if no other target depends on them. While this works for my use case, I think a better way would be to have the ability to define “non-standalone” targets in CMake. There’s special handling for “interface targets”, as they don’t have the EXCLUDE_FROM_DEFAULT_BUILD property.If the provided value doesn't name a generator known by CMake, the internal default is used. Specifies the CMake default generator to use when no generator is supplied with -G. Imagine the executable as the root of a tree of dependencies which is traversed. Its initial value is taken from the calling process environment. For every executable target on which target_link_libraries() is used, the function _include_in_build() recursively sets EXCLUDE_FROM_DEFAULT_BUILD to FALSE on all targets the executable depends on. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |