From a4a9ee94f3aff59fcb9e8f8e31409843564ef6fb Mon Sep 17 00:00:00 2001 From: Rogier Date: Sun, 9 Oct 2016 17:57:18 +0200 Subject: [PATCH] Disable cmake message concerning WIN32 on non-windows systems --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8e3ae95ab..3eda27953 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -726,7 +726,7 @@ else() set(OTHER_FLAGS "${OTHER_FLAGS} -Wsign-compare") endif() - if(NOT ZLIBWAPI_DLL AND CMAKE_SIZEOF_VOID_P EQUAL 4) + if(WIN32 AND NOT ZLIBWAPI_DLL AND CMAKE_SIZEOF_VOID_P EQUAL 4) set(OTHER_FLAGS "${OTHER_FLAGS} -DWIN32_NO_ZLIB_WINAPI") message(WARNING "Defaulting to cdecl for zlib on win32 because ZLIBWAPI_DLL" " isn't set, ensure that ZLIBWAPI_DLL is set if you want stdcall.") -- 2.25.1