From e464a91086386de9bd65e0d9c3c55a38dff056a6 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Sun, 27 Jan 2013 18:09:32 -0500 Subject: [PATCH] Fix using wrong name for windows.h check in cmake --- CMakeLists.txt | 2 +- builds/cmake/platform.hpp.in | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c43507b2..d952ac16 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,7 +42,7 @@ include(CheckCSourceRuns) include(CMakeDependentOption) check_include_files(ifaddrs.h ZMQ_HAVE_IFADDRS) -check_include_files(windows.h HAVE_WINDOWS_H) +check_include_files(windows.h ZMQ_HAVE_WINDOWS) check_include_files(sys/uio.h ZMQ_HAVE_UIO) check_include_files(sys/eventfd.h ZMQ_HAVE_EVENTFD) diff --git a/builds/cmake/platform.hpp.in b/builds/cmake/platform.hpp.in index 5f5eb2e0..4a8ae6f0 100644 --- a/builds/cmake/platform.hpp.in +++ b/builds/cmake/platform.hpp.in @@ -82,10 +82,7 @@ #define ZMQ_HAVE_SOLARIS #endif -#if defined(WIN32) || defined(_WIN32) - #define ZMQ_HAVE_WINDOWS -#endif - +#cmakedefine ZMQ_HAVE_WINDOWS #endif