]> git.ipfire.org Git - thirdparty/json-c.git/commitdiff
Skip apps when we're included in someone else's build. Inspired by ssrlive in PR...
authorEric Hawicz <erh@twosigma.com>
Fri, 7 Jul 2023 00:56:49 +0000 (20:56 -0400)
committerEric Hawicz <erh@twosigma.com>
Fri, 7 Jul 2023 00:56:49 +0000 (20:56 -0400)
CMakeLists.txt

index 7455b1e8b93d1033f64b6d22fd6daf546bf37b21..c9d27062f3df2cf9e89347ff7e8700afdacc360e 100644 (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()