Skip to content

Commit ae6806f

Browse files
committed
Fix security exception for the MSVC2010+ compilers (#3438)
1 parent d6baeb5 commit ae6806f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mapscript/csharp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ if (WIN32)
1818
endif(CMAKE_CL_64)
1919
set (KEYFILE_SPEC /keyfile:${PROJECT_SOURCE_DIR}\\mapscript\\csharp\\mapscript.snk)
2020
endif (NOT MSVC71)
21-
if (MSVC10)
21+
if (MSVC_VERSION GREATER 1500)
2222
set(PLATFORM_TARGET ${PLATFORM_TARGET} /define:CLR4)
23-
endif (MSVC10)
23+
endif (MSVC_VERSION GREATER 1500)
2424
endif(WIN32)
2525

2626
MARK_AS_ADVANCED(CSHARP_COMPILER)

0 commit comments

Comments
 (0)