Permalink
Browse files

Fix security exception for the MSVC2010+ compilers (#3438)

  • Loading branch information...
1 parent d6baeb5 commit ae6806fcb0fb33a244b3eec14019e7c32d10b21b @szekerest szekerest committed Jan 18, 2015
Showing with 2 additions and 2 deletions.
  1. +2 −2 mapscript/csharp/CMakeLists.txt
@@ -18,9 +18,9 @@ if (WIN32)
endif(CMAKE_CL_64)
set (KEYFILE_SPEC /keyfile:${PROJECT_SOURCE_DIR}\\mapscript\\csharp\\mapscript.snk)
endif (NOT MSVC71)
- if (MSVC10)
+ if (MSVC_VERSION GREATER 1500)
set(PLATFORM_TARGET ${PLATFORM_TARGET} /define:CLR4)
- endif (MSVC10)
+ endif (MSVC_VERSION GREATER 1500)
endif(WIN32)
MARK_AS_ADVANCED(CSHARP_COMPILER)

0 comments on commit ae6806f

Please sign in to comment.