Skip to content

Commit b4f41cc

Browse files
committed
Add support for the csharp debug builds in cmake
1 parent 2ab4632 commit b4f41cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mapscript/csharp/CMakeLists.txt

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ if (WIN32)
2121
if (MSVC_VERSION GREATER 1500)
2222
set(PLATFORM_TARGET ${PLATFORM_TARGET} /define:CLR4)
2323
endif (MSVC_VERSION GREATER 1500)
24+
MESSAGE(STATUS "Cmake build type: ${CMAKE_BUILD_TYPE}")
25+
if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
26+
set(PLATFORM_TARGET ${PLATFORM_TARGET} /debug:full)
27+
endif (CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
2428
endif(WIN32)
2529

2630
MARK_AS_ADVANCED(CSHARP_COMPILER)

0 commit comments

Comments
 (0)