Permalink
Browse files

Fix C# module name

Generated C# module would look for csharpmapscript.dll
and not mapscript.dll. Throwing a module can't be loaded error.
  • Loading branch information...
NathanW2 committed Feb 2, 2017
1 parent df06a0a commit 1f02a3561aff603ad871f9178401fcbef9a7307f
Showing with 4 additions and 4 deletions.
  1. +4 −4 mapscript/csharp/CMakeLists.txt
@@ -34,14 +34,14 @@ include_directories(${PROJECT_SOURCE_DIR}/mapscript/)
include_directories(${PROJECT_SOURCE_DIR}/mapscript/csharp)
SET (CMAKE_SWIG_OUTDIR "${CMAKE_CURRENT_BINARY_DIR}")
SET( CMAKE_SWIG_FLAGS -namespace OSGeo.MapServer ${MAPSERVER_COMPILE_DEFINITIONS} -DWIN32)
SWIG_ADD_MODULE(csharpmapscript csharp ../mapscript.i)
SWIG_ADD_MODULE(mapscript csharp ../mapscript.i)
set_target_properties(csharpmapscript PROPERTIES OUTPUT_NAME "mapscript")
set_target_properties(mapscript PROPERTIES OUTPUT_NAME "mapscript")
SWIG_LINK_LIBRARIES(csharpmapscript ${MAPSERVER_LIBMAPSERVER})
SWIG_LINK_LIBRARIES(mapscript ${MAPSERVER_LIBMAPSERVER})
ADD_CUSTOM_COMMAND(TARGET csharpmapscript
ADD_CUSTOM_COMMAND(TARGET mapscript
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
POST_BUILD
COMMAND copy /Y ..\\..\\..\\mapscript\\csharp\\mapscript.snk

0 comments on commit 1f02a35

Please sign in to comment.