Browse Source

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

tags/json-c-0.17-20230812
Eric Hawicz 2 years ago
parent
commit
bdfdb5fe10
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      CMakeLists.txt

+ 3
- 0
CMakeLists.txt 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()


Loading…
Cancel
Save