diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e7eab8..9d86668 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,7 +20,6 @@ find_package(DepotTools REQUIRED) # Options # -option(BUILD_TESTS "Build test binaries" OFF) option(BUILD_SAMPLES "Build samples binaries" OFF) set(NINJA_ARGS "" CACHE STRING "Ninja arguments to pass before compiling WebRTC") diff --git a/Targets/WebRTC/CMakeLists.txt b/Targets/WebRTC/CMakeLists.txt index 5297dfa..505261f 100644 --- a/Targets/WebRTC/CMakeLists.txt +++ b/Targets/WebRTC/CMakeLists.txt @@ -104,7 +104,7 @@ endif (TARGET_OS STREQUAL "android") # # Generate build files # -set(_GEN_ARGS use_gold=false target_cpu=\\"${TARGET_CPU}\\" target_os=\\"${TARGET_OS}\\") +set(_GEN_ARGS use_gold=false rtc_include_tests=true target_cpu=\\"${TARGET_CPU}\\" target_os=\\"${TARGET_OS}\\") if (NOT CMAKE_BUILD_TYPE MATCHES DEBUG) set(_GEN_ARGS ${_GEN_ARGS} is_debug=false) @@ -112,10 +112,6 @@ elseif (NOT CMAKE_BUILD_TYPE MATCHES DEBUG) set(_GEN_ARGS ${_GEN_ARGS} is_debug=true) endif (NOT CMAKE_BUILD_TYPE MATCHES DEBUG) -if (NOT BUILD_TESTS) - set(_GEN_ARGS ${_GEN_ARGS} rtc_include_tests=false) -endif (NOT BUILD_TESTS) - if (WIN32) set(_GEN_ARGS ${_GEN_ARGS}) set(_GEN_COMMAND gn gen out/Default --args="${_GEN_ARGS}")