Merge pull request #866 from dedowsdi/fix_cmake_fontconfig

Fontconfig should be external library.
This commit is contained in:
OpenSceneGraph git repository 2019-12-13 11:01:00 +00:00 committed by GitHub
commit bf7e4a6361
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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