diff --git a/CMakeLists.txt b/CMakeLists.txt index 861164ad..e4ce8a3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,12 +1,13 @@ # CMake build script for ZeroMQ -project(ZeroMQ) -if(${CMAKE_SYSTEM_NAME} STREQUAL Darwin) +if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Darwin) cmake_minimum_required(VERSION 3.0.2) else() cmake_minimum_required(VERSION 2.8.12) endif() +project(ZeroMQ) + include(CheckIncludeFiles) include(CheckCCompilerFlag) include(CheckCXXCompilerFlag)