Skip to content

Commit

Permalink
OSG_TEXT_USE_FONTCONFIG additional check needed
Browse files Browse the repository at this point in the history
  • Loading branch information
valid-ptr authored and robertosfield committed Jul 26, 2019
1 parent 36a3c5f commit 9d9273c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/osgText/CMakeLists.txt
Expand Up @@ -50,10 +50,9 @@ SET(TARGET_LIBRARIES
OpenThreads
)


SET(COMPONENT_PKGCONFIG_DESCRIPTION "Text rendering library for OpenSceneGraph")

if(Fontconfig_FOUND)
if(OSG_TEXT_USE_FONTCONFIG AND Fontconfig_FOUND)
MESSAGE(STATUS "osgText will be linked with FontConfig library")
list(APPEND TARGET_LIBRARIES Fontconfig::Fontconfig)
ADD_DEFINITIONS(-DWITH_FONTCONFIG)
Expand Down

0 comments on commit 9d9273c

Please sign in to comment.