Skip to content

Commit

Permalink
Support multiple include paths for libbircclient (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
billie80 authored and brndnmtthws committed Feb 7, 2018
1 parent 6a11147 commit 29a1688
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cmake/ConkyPlatformChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,16 @@ if(BUILD_ICAL)
endif(BUILD_ICAL)

if(BUILD_IRC)
check_include_files(libircclient.h IRC_H_)
if(NOT IRC_H_)
find_path(IRC_H_N libircclient.h PATHS /usr/include/libircclient)
find_path(IRC_H_S libircclient.h PATHS /usr/include)
if(IRC_H_N)
include_directories(${IRC_H_N})
endif(IRC_H_N)
if(IRC_H_N OR IRC_H_S)
set(IRC_H_ true)
else()
message(FATAL_ERROR "Unable to find libircclient")
endif(NOT IRC_H_)
endif(IRC_H_N OR IRC_H_S)
set(conky_libs ${conky_libs} -lircclient)
endif(BUILD_IRC)

Expand Down

0 comments on commit 29a1688

Please sign in to comment.