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.
This commit is contained in:
PntAndCnt 2019-11-26 17:17:38 +08:00 committed by dedowsdi
parent 12084cd0e2
commit 86fac74229

View File

@ -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")