summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-07-11 18:54:50 +0800
committerErik Kundiman <erik@megapahit.org>2023-07-19 10:51:34 +0800
commit2fc3845e1b23a1efd5666241a2d1cc78340d4b61 (patch)
tree24ccf99dea1baa99b66005630bce5913fdea39c0
parent2911d635af8b65de35a70f8f0fc176854cf1bdfb (diff)
Obtain FontConfig flags when using system libs
and at the same time escape use_prebuilt_binary commands in the file.
-rw-r--r--indra/cmake/ViewerMiscLibs.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/cmake/ViewerMiscLibs.cmake b/indra/cmake/ViewerMiscLibs.cmake
index 00f8b77106..52128414c9 100644
--- a/indra/cmake/ViewerMiscLibs.cmake
+++ b/indra/cmake/ViewerMiscLibs.cmake
@@ -1,6 +1,12 @@
# -*- cmake -*-
include(Prebuilt)
+if (NOT (USE_AUTOBUILD_3P OR USE_CONAN))
+ add_library( ll::fontconfig INTERFACE IMPORTED )
+ use_system_binary(fontconfig)
+ return ()
+endif ()
+
if (LINUX)
#use_prebuilt_binary(libuuid)
add_library( ll::fontconfig INTERFACE IMPORTED )