Mercurial > irccd
changeset 389:4379c48cfd15
Misc: add missing sysconfig.hpp to detect WITH_SSL
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 22 Dec 2016 14:23:47 +0100 |
parents | 7efbaf3800b9 |
children | 2df0f202946c |
files | libcommon/CMakeLists.txt libirccdctl/irccd/client.hpp |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libcommon/CMakeLists.txt Thu Dec 22 13:50:14 2016 +0100 +++ b/libcommon/CMakeLists.txt Thu Dec 22 14:23:47 2016 +0100 @@ -45,14 +45,17 @@ ${libcommon_SOURCE_DIR}/irccd/util.cpp ) +if (NOT WITH_SSL) + list(APPEND FLAGS NET_NO_SSL) +endif () + irccd_define_library( TARGET libcommon SOURCES ${libcommon_SOURCE_DIR}/CMakeLists.txt ${HEADERS} ${SOURCES} - FLAGS - $<$<BOOL:NOT ${WITH_SSL}>:NET_NO_SSL> + FLAGS ${FLAGS} LIBRARIES extern-fmt extern-json