Skip to content

Commit

Permalink
Merge pull request #641 from yangskyboxlabs/cmake-option
Browse files Browse the repository at this point in the history
cmake: Rename TEST_APPS as LIBSRTP_TEST_APPS option
  • Loading branch information
pabuhler committed Feb 8, 2023
2 parents 3a67df7 + 989573a commit 536a367
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.12)
cmake_minimum_required(VERSION 3.13)

project(libsrtp2 VERSION 2.6.0 LANGUAGES C)

Expand Down Expand Up @@ -59,7 +59,7 @@ set(ERR_REPORTING_FILE "" CACHE FILEPATH "Use file for logging")
set(ENABLE_OPENSSL OFF CACHE BOOL "Enable OpenSSL crypto engine")
set(ENABLE_MBEDTLS OFF CACHE BOOL "Enable MbedTLS crypto engine")
set(ENABLE_NSS OFF CACHE BOOL "Enable NSS crypto engine")
set(TEST_APPS ON CACHE BOOL "Build test applications")
option(LIBSRTP_TEST_APPS "Build libSRTP test applications" ON)
set(BUILD_WITH_SANITIZERS OFF CACHE BOOL "Adds sanitizer flags to compiler")
set(BUILD_WITH_WARNINGS ON CACHE BOOL "Adds warnings and warning as error flags to compiler")
option(BUILD_SHARED_LIBS "Build shared library" OFF)
Expand Down Expand Up @@ -283,7 +283,7 @@ install(FILES include/srtp.h crypto/include/auth.h
crypto/include/crypto_types.h
DESTINATION include/srtp2)

if(TEST_APPS)
if(LIBSRTP_TEST_APPS)
enable_testing()

find_package(PCAP)
Expand Down

0 comments on commit 536a367

Please sign in to comment.