From 559c22e06b87ffc1234d57b4fd0792693283c4a4 Mon Sep 17 00:00:00 2001 From: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com> Date: Tue, 28 Apr 2015 12:30:03 -0400 Subject: [PATCH] cmake: fix compilation in cmake 2.8 Refs #71858 --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c007571..3bafced0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -374,7 +374,10 @@ SET( libringclient_extra_LIB_HDRS src/typedefs.h ) -IF(NOT ${ENABLE_LIBWRAP} MATCHES true) +IF(${ENABLE_LIBWRAP} MATCHES false) + # done this way because of bug in cmake 2.8 + # (not necessary in 3.0+) +ELSE() # presence manager interface SET ( presencemanager_xml ${dbus_xml_introspecs_path}/presencemanager-introspec.xml ) @@ -458,7 +461,7 @@ IF(NOT ${ENABLE_LIBWRAP} MATCHES true) instance_dbus_interface ) -ENDIF(NOT ${ENABLE_LIBWRAP} MATCHES true) +ENDIF() # Manually wrap private files and interfaces SET(libringclient_PRIVATE_HDRS -- GitLab