Permalink
Browse files

CMAKE: Change csharpmapscript target name

  • Loading branch information...
1 parent b05989b commit 42b48bc3284fe5d086a7e941be1634356d0a2dae @szekerest szekerest committed Apr 1, 2013
Showing with 7 additions and 2 deletions.
  1. +7 −2 mapscript/csharp/CMakeLists.txt
@@ -15,6 +15,9 @@ if (WIN32)
else(CMAKE_CL_64)
set(PLATFORM_TARGET /platform:x86)
endif(CMAKE_CL_64)
+ if (MSVC10)
+ set(PLATFORM_TARGET ${PLATFORM_TARGET} /define:CLR4)
+ endif (MSVC10)
endif(WIN32)
MARK_AS_ADVANCED(CSHARP_COMPILER)
@@ -26,6 +29,8 @@ 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)
+set_target_properties(csharpmapscript PROPERTIES OUTPUT_NAME "mapscript")
+
SWIG_LINK_LIBRARIES(csharpmapscript ${MAPSERVER_LIBMAPSERVER})
ADD_CUSTOM_COMMAND(TARGET csharpmapscript
@@ -44,6 +49,6 @@ ADD_CUSTOM_COMMAND(TARGET csharpmapscript
COMMENT "Compiling c# source files"
)
-get_target_property(LOC_MAPSCRIPT_LIB ${SWIG_MODULE_csharpmapscript_REAL_NAME} LOCATION)
-install(FILES ${LOC_MAPSCRIPT_LIB} DESTINATION lib)
+#get_target_property(LOC_MAPSCRIPT_LIB ${SWIG_MODULE_csharpmapscript_REAL_NAME} LOCATION)
+#install(FILES ${LOC_MAPSCRIPT_LIB} DESTINATION lib)

0 comments on commit 42b48bc

Please sign in to comment.