mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Adding nested check, due to comments in ft2build.h
This commit is contained in:
parent
ac224149de
commit
237fe4864b
@ -214,14 +214,22 @@ if(BUILD_X11)
|
||||
if(BUILD_XFT)
|
||||
find_path(freetype_INCLUDE_PATH config/ftconfig.h ${INCLUDE_SEARCH_PATH}
|
||||
/usr/include/freetype2
|
||||
/usr/include/freetype2/freetype
|
||||
/usr/local/include/freetype2
|
||||
/usr/pkg/include/freetype2)
|
||||
if(freetype_INCLUDE_PATH)
|
||||
set(freetype_FOUND true)
|
||||
set(conky_includes ${conky_includes} ${freetype_INCLUDE_PATH})
|
||||
else(freetype_INCLUDE_PATH)
|
||||
message(FATAL_ERROR "Unable to find freetype library")
|
||||
find_path(freetype_INCLUDE_PATH freetype/config/ftconfig.h ${INCLUDE_SEARCH_PATH}
|
||||
/usr/include/freetype2
|
||||
/usr/local/include/freetype2
|
||||
/usr/pkg/include/freetype2)
|
||||
if(freetype_INCLUDE_PATH)
|
||||
set(freetype_FOUND true)
|
||||
set(conky_includes ${conky_includes} ${freetype_INCLUDE_PATH})
|
||||
else(freetype_INCLUDE_PATH)
|
||||
message(FATAL_ERROR "Unable to find freetype library")
|
||||
endif(freetype_INCLUDE_PATH)
|
||||
endif(freetype_INCLUDE_PATH)
|
||||
if(NOT X11_Xft_FOUND)
|
||||
message(FATAL_ERROR "Unable to find Xft library")
|
||||
|
Loading…
Reference in New Issue
Block a user