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:
parent
3fbf24759f
commit
99b2fffa7c
@ -52,7 +52,7 @@ SET(TARGET_LIBRARIES
|
|||||||
|
|
||||||
if(OSG_TEXT_USE_FONTCONFIG AND 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_EXTERNAL_LIBRARIES Fontconfig::Fontconfig)
|
||||||
ADD_DEFINITIONS(-DWITH_FONTCONFIG)
|
ADD_DEFINITIONS(-DWITH_FONTCONFIG)
|
||||||
else()
|
else()
|
||||||
MESSAGE(STATUS "osgText will not be linked with FontConfig library")
|
MESSAGE(STATUS "osgText will not be linked with FontConfig library")
|
||||||
|
Loading…
Reference in New Issue
Block a user