From f8b36bceb14b85b848f1e4f3f075a5e7a64c0ae3 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Wed, 28 Aug 2024 13:27:42 +0800 Subject: Fix left out & error-causing from previous commit --- indra/llwebrtc/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'indra/llwebrtc') diff --git a/indra/llwebrtc/CMakeLists.txt b/indra/llwebrtc/CMakeLists.txt index 425376d248..21ce222aea 100644 --- a/indra/llwebrtc/CMakeLists.txt +++ b/indra/llwebrtc/CMakeLists.txt @@ -28,9 +28,11 @@ list(APPEND llwebrtc_SOURCE_FILES ${llwebrtc_HEADER_FILES}) add_library (llwebrtc SHARED ${llwebrtc_SOURCE_FILES}) -if (NOT INSTALL) +if (USESYSTEMLIBS) +target_compile_definitions(llwebrtc INTERFACE LL_WEBRTC=1) +else (USESYSTEMLIBS) set_target_properties(llwebrtc PROPERTIES PUBLIC_HEADER llwebrtc.h) -endif () +endif (USESYSTEMLIBS) if (WINDOWS) cmake_policy(SET CMP0091 NEW) -- cgit v1.2.3