Merge pull request #12 from dtikhonov/201804181037-use-cmake-msvc-env-var

cmake: use MSVC variable instead of trying to detect
This commit is contained in:
LiteSpeed Tech 2018-04-19 10:46:13 -04:00 committed by GitHub
commit 1279d5bfcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.8)
project(lsquic)
IF (NOT (CMAKE_C_COMPILER MATCHES "MSVC"))
IF (NOT MSVC)
# We prefer clang
IF(NOT ("${CMAKE_C_COMPILER}" MATCHES "ccc-analyzer" OR
"${CMAKE_C_COMPILER}" MATCHES "gcc" OR
@ -29,7 +29,7 @@ ENDIF()
MESSAGE(STATUS "DEVEL_MODE: ${DEVEL_MODE}")
IF (NOT (CMAKE_C_COMPILER MATCHES "MSVC"))
IF (NOT MSVC)
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -Wall -Wextra -Wno-unused-parameter")
SET(MY_CMAKE_FLAGS "${MY_CMAKE_FLAGS} -fno-omit-frame-pointer")
@ -115,7 +115,7 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
ENDIF()
IF (NOT (CMAKE_C_COMPILER MATCHES "MSVC"))
IF (NOT MSVC)
add_executable(http_client
test/http_client.c
test/prog.c

View file

@ -5,7 +5,7 @@ include_directories( ../../src/liblsquic )
enable_testing()
IF (NOT (CMAKE_C_COMPILER MATCHES "MSVC"))
IF (NOT MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-value")