CMake build system: Fix STREQUAL comparisons and set /Wall for MSVC

This commit is contained in:
Dirk Ziegelmeier
2018-11-22 13:14:14 +01:00
parent ef76bbe3f0
commit 5da6c0cfd0
5 changed files with 14 additions and 14 deletions

View File

@@ -4,7 +4,7 @@ project(lwip C)
set (BUILD_SHARED_LIBS ON)
if (NOT CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT CMAKE_SYSTEM_NAME STREQUAL GNU)
if (NOT CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT CMAKE_SYSTEM_NAME STREQUAL "GNU")
message(FATAL_ERROR "Lwip shared library is only working on Linux or the Hurd")
endif()