Permalink
Browse files

Add support for the csharp debug builds in cmake

  • Loading branch information...
1 parent 2ab4632 commit b4f41ccac04ff6272ceffc8ea361c1cf4e8461ac @szekerest szekerest committed Sep 16, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 mapscript/csharp/CMakeLists.txt
@@ -21,6 +21,10 @@ if (WIN32)
if (MSVC_VERSION GREATER 1500)
set(PLATFORM_TARGET ${PLATFORM_TARGET} /define:CLR4)
endif (MSVC_VERSION GREATER 1500)
+ MESSAGE(STATUS "Cmake build type: ${CMAKE_BUILD_TYPE}")
+ if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
+ set(PLATFORM_TARGET ${PLATFORM_TARGET} /debug:full)
+ endif (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
endif(WIN32)
MARK_AS_ADVANCED(CSHARP_COMPILER)

0 comments on commit b4f41cc

Please sign in to comment.