Skip apps when we're included in someone else's build. Inspired by ssrlive in PR #813.

This commit is contained in:
Eric Hawicz
2023-07-06 20:56:49 -04:00
parent 11311ed2a3
commit bdfdb5fe10

View File

@@ -564,7 +564,10 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING AND
add_subdirectory(tests)
endif()
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
# skip apps when we're included in someone else's build
if (NOT MSVC) # cmd line apps don't built on Windows currently.
add_subdirectory(apps)
endif()
endif()