OSG_TEXT_USE_FONTCONFIG additional check needed

This commit is contained in:
konstantin.matveyev 2019-07-26 14:40:47 +03:00
parent b0c89b137d
commit 2b0105f875

View File

@ -50,7 +50,7 @@ SET(TARGET_LIBRARIES
OpenThreads OpenThreads
) )
if(Fontconfig_FOUND) if(OSG_TEXT_USE_FONTCONFIG AND Fontconfig_FOUND)
MESSAGE(STATUS "osgText will be linked with FontConfig library") MESSAGE(STATUS "osgText will be linked with FontConfig library")
list(APPEND TARGET_LIBRARIES Fontconfig::Fontconfig) list(APPEND TARGET_LIBRARIES Fontconfig::Fontconfig)
ADD_DEFINITIONS(-DWITH_FONTCONFIG) ADD_DEFINITIONS(-DWITH_FONTCONFIG)