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