better support for static build on debian

This commit is contained in:
filux
2015-01-31 11:53:59 +01:00
parent 5eeac92fb4
commit 69e9dff754
3 changed files with 29 additions and 10 deletions

View File

@@ -46,7 +46,9 @@ OPTION(FORCE_IRCCLIENT_DYNAMIC_LIBS "force the use of dynamic libs for IRCCLIENT
MESSAGE(STATUS "Force IRCCLient dynamic: ${FORCE_IRCCLIENT_DYNAMIC_LIBS}")
IF(WANT_STATIC_LIBS AND NOT FORCE_IRCCLIENT_DYNAMIC_LIBS)
SET(IRCCLIENT_FIND_LIBRARIES libircclient.a)
SET(IRCCLIENT_FIND_LIBRARIES libircclient.a ircclient.a)
ELSE()
SET(IRCCLIENT_FIND_LIBRARIES libircclient ircclient)
ENDIF()
FIND_LIBRARY(IRCCLIENT_LIBRARY