Skip to content

Commit

Permalink
Statically link MSVC for grpc-labview (#175)
Browse files Browse the repository at this point in the history
 Changes to statically link MSVC for grpc-labview
  • Loading branch information
shivaprasad-basavaraj authored Oct 21, 2022
1 parent 3266590 commit 35fe50a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
#----------------------------------------------------------------------
cmake_minimum_required(VERSION 3.5.1)

cmake_policy(SET CMP0091 NEW)

project(labview-grpc C CXX)

if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
else()
add_definitions(-D_WIN32_WINNT=0x600)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4267 /wd4244")
endif()

Expand Down

0 comments on commit 35fe50a

Please sign in to comment.