Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2017-11-14 21:46:13 +0300
committereidheim <eidheim@gmail.com>2017-11-14 21:46:13 +0300
commit3d18c3b1eb4c33549194af6f33d27d426fe16d3e (patch)
tree7ad99973af1a575e2c5d65d1ab0edab4f4808e40 /CMakeLists.txt
parent539cfe9eee4f651c3797405cd68a8ced34d9c26d (diff)
Added MSVC support to cmake files (not tested, but hopefully it works). Some tests are disabled due to lacking MSVC options.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f4af062..41796a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,11 @@ project (Simple-WebSocket-Server)
option(USE_STANDALONE_ASIO "set ON to use standalone Asio instead of Boost.Asio" OFF)
option(BUILD_TESTING "set ON to build library tests" OFF)
-add_compile_options(-std=c++11 -Wall -Wextra -Wsign-conversion)
+if(NOT MSVC)
+ add_compile_options(-std=c++11 -Wall -Wextra -Wsign-conversion)
+else()
+ add_compile_options(/W1)
+endif()
add_library(simple-websocket-server INTERFACE)