File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,17 @@ INCLUDE_DIRECTORIES ( ${PROJECT_SOURCE_DIR}/generic )
103103## ===========================================================================
104104## Locate fontconfig
105105## ===========================================================================
106- FIND_PACKAGE ( Fontconfig REQUIRED)
106+ FIND_PACKAGE ( Fontconfig )
107+ IF ( ${Fontconfig_FOUND} )
108+ MESSAGE ( STATUS "Found FontConfig with CMake!" )
109+ ELSE ()
110+ FIND_PACKAGE ( PkgConfig REQUIRED )
111+ pkg_check_modules ( Fontconfig REQUIRED fontconfig )
112+ MESSAGE ( STATUS "Found Fontconfig with pkg-config!" )
113+ ENDIF ()
114+ MESSAGE ( STATUS " Fontconfig_INCLUDE_DIRS: " ${Fontconfig_INCLUDE_DIRS} )
115+ MESSAGE ( STATUS " Fontconfig_LIBRARIES: " ${Fontconfig_LIBRARIES} )
116+
107117INCLUDE_DIRECTORIES ( ${Fontconfig_INCLUDE_DIRS} )
108118
109119## ===========================================================================
You can’t perform that action at this time.
0 commit comments