Skip to content
Permalink
Browse files

Check for MSVC rather than WIN32 when setting compiler flags

  • Loading branch information...
geographika committed Jan 20, 2019
1 parent 418e15c commit b559849f0106884f6e5476d4680ff84930edc3c4
Showing with 4 additions and 2 deletions.
  1. +4 −2 CMakeLists.txt
@@ -905,8 +905,10 @@ ms_link_libraries( ${CMAKE_DL_LIBS} m )
endif(UNIX)

if (WIN32)
ms_link_libraries( ${MS_EXTERNAL_LIBS} ws2_32.lib)
set_target_properties(mapserver PROPERTIES COMPILE_FLAGS "/wd4267 /wd4244 /wd4018")
ms_link_libraries( ${MS_EXTERNAL_LIBS} ws2_32.lib)
if (MSVC)
set_target_properties(mapserver PROPERTIES COMPILE_FLAGS "/wd4267 /wd4244 /wd4018")
endif(MSVC)
endif (WIN32)

configure_file (

0 comments on commit b559849

Please sign in to comment.
You can’t perform that action at this time.