From 26bc9bb629c49c0d5a8668a92c0c7b64626b65c7 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Mon, 16 Oct 2017 09:28:30 +0200 Subject: Fix #7: use glib-unix.h only on UNIX-like OSes --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 480c91c..45120e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,6 +27,10 @@ pkg_check_variable(libuca plugindir) set(UCA_NET_DEFAULT_PORT 8989) +if (UNIX) + set(HAVE_UNIX 1) +endif () + configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h) -- cgit v1.2.3