Skip to content

Commit b559849

Browse files
committed
Check for MSVC rather than WIN32 when setting compiler flags
1 parent 418e15c commit b559849

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,10 @@ ms_link_libraries( ${CMAKE_DL_LIBS} m )
905905
endif(UNIX)
906906

907907
if (WIN32)
908-
ms_link_libraries( ${MS_EXTERNAL_LIBS} ws2_32.lib)
909-
set_target_properties(mapserver PROPERTIES COMPILE_FLAGS "/wd4267 /wd4244 /wd4018")
908+
ms_link_libraries( ${MS_EXTERNAL_LIBS} ws2_32.lib)
909+
if (MSVC)
910+
set_target_properties(mapserver PROPERTIES COMPILE_FLAGS "/wd4267 /wd4244 /wd4018")
911+
endif(MSVC)
910912
endif (WIN32)
911913

912914
configure_file (

0 commit comments

Comments
 (0)