From bdfdb5fe1041c0d092110c7abf46f346a6493557 Mon Sep 17 00:00:00 2001 From: Eric Hawicz Date: Thu, 6 Jul 2023 20:56:49 -0400 Subject: [PATCH] Skip apps when we're included in someone else's build. Inspired by ssrlive in PR #813. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7455b1e8..c9d27062 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() -- 2.47.2