mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
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:
commit
1279d5bfcd
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue