From 99b2fffa7cd6a88dfbf6484824d9b11d740a1ffb 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 49ba75eed..9d64a5843 100644 --- a/src/osgText/CMakeLists.txt +++ b/src/osgText/CMakeLists.txt @@ -52,7 +52,7 @@ SET(TARGET_LIBRARIES 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")