You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Finally, we'll add some packaging logic, but include it by default only if we're the top-level project. That insulates FetchContent users from our install rules if they don't want them, but keeps them available in case they do:
string(COMPAREEQUAL"${CMAKE_SOURCE_DIR}""${CMAKE_CURRENT_SOURCE_DIR}"is_top_level)
option(SomeLib_INCLUDE_PACKAGING"Include packaging rules for SomeLib""${is_top_level}")
if (SomeLib_INCLUDE_PACKAGING)
add_subdirectory(packaging)
endif ()