Skip to content

Commit

Permalink
Merge pull request #706 from pabuhler/cmake-disable-test-when-included
Browse files Browse the repository at this point in the history
disable test if include from a separate project
  • Loading branch information
pabuhler authored May 2, 2024
2 parents aabca37 + 3d7a086 commit d625a3f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ include(CheckTypeSize)
include(CheckCSourceCompiles)
include(ConfigSafeGuards)

if(NOT PROJECT_IS_TOP_LEVEL)
set(LIBSRTP_TEST_APPS OFF)
endif()

if(ENABLE_WARNINGS)
include(Warnings)
endif()
Expand Down

0 comments on commit d625a3f

Please sign in to comment.