Skip to content

Commit a78ef93

Browse files
committed
Fix SDE plugin build (#4887)
1 parent e184249 commit a78ef93

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -462,13 +462,13 @@ if(WITH_SDE_PLUGIN)
462462
if(SDE_INCLUDE_DIR AND SDE_LIBRARY_DIR)
463463
include_directories(${SDE_INCLUDE_DIR})
464464
if(SDE_VERSION STREQUAL "91")
465-
add_library(msplugin_sde91 MODULE mapsde.c mapthread.c)
466-
target_link_libraries(msplugin_sde91 ${SDE_LIBRARY_DIR}/pe91.lib ${SDE_LIBRARY_DIR}/sg91.lib ${SDE_LIBRARY_DIR}/sde91.lib ${MAPSERVER_LIBMAPSERVER})
467-
set_target_properties(msplugin_sde91 PROPERTIES COMPILE_FLAGS "-DUSE_SDE")
465+
add_library(msplugin_sde_91 MODULE mapsde.c mapthread.c)
466+
target_link_libraries(msplugin_sde_91 ${SDE_LIBRARY_DIR}/pe91.lib ${SDE_LIBRARY_DIR}/sg91.lib ${SDE_LIBRARY_DIR}/sde91.lib ${MAPSERVER_LIBMAPSERVER})
467+
set_target_properties(msplugin_sde_91 PROPERTIES COMPILE_FLAGS "-DUSE_SDE -DUSE_SDE_PLUGIN")
468468
else(SDE_VERSION STREQUAL "91")
469-
add_library(msplugin_sde92 MODULE mapsde.c mapthread.c)
470-
target_link_libraries(msplugin_sde92 ${SDE_LIBRARY_DIR}/pe.lib ${SDE_LIBRARY_DIR}/sg.lib ${SDE_LIBRARY_DIR}/sde.lib ${MAPSERVER_LIBMAPSERVER})
471-
set_target_properties(msplugin_sde92 PROPERTIES COMPILE_FLAGS "-DUSE_SDE")
469+
add_library(msplugin_sde_92 MODULE mapsde.c mapthread.c)
470+
target_link_libraries(msplugin_sde_92 ${SDE_LIBRARY_DIR}/pe.lib ${SDE_LIBRARY_DIR}/sg.lib ${SDE_LIBRARY_DIR}/sde.lib ${MAPSERVER_LIBMAPSERVER})
471+
set_target_properties(msplugin_sde_92 PROPERTIES COMPILE_FLAGS "-DUSE_SDE -DUSE_SDE_PLUGIN")
472472
endif(SDE_VERSION STREQUAL "91")
473473
set(USE_SDE_PLUGIN 1)
474474
else(SDE_INCLUDE_DIR AND SDE_LIBRARY_DIR)

0 commit comments

Comments
 (0)