Skip to content

Commit

Permalink
Disable cmake message concerning WIN32 on non-windows systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Rogier-5 authored and nerzhul committed Oct 11, 2016
1 parent 1b45086 commit a4a9ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Expand Up @@ -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.")
Expand Down

0 comments on commit a4a9ee9

Please sign in to comment.