projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b45086
)
Disable cmake message concerning WIN32 on non-windows systems
author
Rogier
<rogier777@gmail.com>
Sun, 9 Oct 2016 15:57:18 +0000
(17:57 +0200)
committer
Ner'zhul
<nerzhul@users.noreply.github.com>
Tue, 11 Oct 2016 05:29:04 +0000
(07:29 +0200)
src/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/src/CMakeLists.txt
b/src/CMakeLists.txt
index 8e3ae95abf4b2768a767d2d152e625269eb7dbc5..3eda27953f19bb35f170295db83863b2ee5e6813 100644
(file)
--- 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.")