Skip to content

Commit

Permalink
disable test if include from a separate project
Browse files Browse the repository at this point in the history
When this cmake project is included by another project then only build the libsrtp library.
  • Loading branch information
pabuhler committed Apr 30, 2024
1 parent d441994 commit 3d7a086
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 3d7a086

Please sign in to comment.