From d4c9ac28ce05a116ca3dc39e3c4ca1be38d256d9 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Wed, 12 Apr 2023 20:21:51 +0800 Subject: [PATCH] Build apps only in project itself. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7455b1e..5d5b4db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -564,7 +564,9 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME AND BUILD_TESTING AND add_subdirectory(tests) endif() +if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) if (NOT MSVC) # cmd line apps don't built on Windows currently. add_subdirectory(apps) endif() +endif()