From c84790f978a90483ea4d112eb497252c4e2954be Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 16 Dec 2022 10:23:28 +0400 Subject: [PATCH] Set NDEBUG when debug webrtc build is not found --- external/webrtc/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/external/webrtc/CMakeLists.txt b/external/webrtc/CMakeLists.txt index 26d1103..0cafdbc 100644 --- a/external/webrtc/CMakeLists.txt +++ b/external/webrtc/CMakeLists.txt @@ -65,6 +65,7 @@ endif() if (NOT EXISTS ${libs_loc}/tg_owt/out/Debug/${webrtc_lib_prefix}tg_owt${webrtc_lib_suffix}) set(webrtc_build_loc ${libs_loc}/tg_owt/out/Release) + target_compile_definitions(external_webrtc INTERFACE $<$:NDEBUG>) endif() target_include_directories(external_webrtc SYSTEM