From 86fac74229b457e48fa0a1b988945f4700b3b215 Mon Sep 17 00:00:00 2001 From: PntAndCnt Date: Tue, 26 Nov 2019 17:17:38 +0800 Subject: [PATCH] Fontconfig should be external library. Add Fontconfig to TARGET_LIBRARIES cause osg3::osgText target looking for openscegraph-Fontconfig-import-targets.cmake, which doesn't exists. --- src/osgText/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgText/CMakeLists.txt b/src/osgText/CMakeLists.txt index 985fa1f18..537c6a6ac 100644 --- a/src/osgText/CMakeLists.txt +++ b/src/osgText/CMakeLists.txt @@ -54,7 +54,7 @@ SET(COMPONENT_PKGCONFIG_DESCRIPTION "Text rendering library for OpenSceneGraph") if(OSG_TEXT_USE_FONTCONFIG AND Fontconfig_FOUND) MESSAGE(STATUS "osgText will be linked with FontConfig library") - list(APPEND TARGET_LIBRARIES Fontconfig::Fontconfig) + LIST(APPEND TARGET_EXTERNAL_LIBRARIES Fontconfig::Fontconfig) ADD_DEFINITIONS(-DWITH_FONTCONFIG) else() MESSAGE(STATUS "osgText will not be linked with FontConfig library")