]> source.dussan.org Git - tigervnc.git/commitdiff
Fix installer build when using MinGW
authorDRC <dcommander@users.sourceforge.net>
Mon, 7 Nov 2011 09:58:19 +0000 (09:58 +0000)
committerDRC <dcommander@users.sourceforge.net>
Mon, 7 Nov 2011 09:58:19 +0000 (09:58 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4769 3789f03b-4d11-0410-bbf8-ca57d06f2519

win/winvnc/CMakeLists.txt

index dc567b12afd662916781fa8c8c97371efb694e20..dd9117b5005fee2c6d8fa023c7e6e0f4dece10cc 100644 (file)
@@ -10,6 +10,11 @@ add_library(wm_hooks SHARED
   ../wm_hooks/wm_hooks.def
   ../wm_hooks/wm_hooks.rc)
 
+# We want the DLL to be named wm_hooks.dll rather than libwm_hooks.dll
+if(MINGW)
+  set_target_properties(wm_hooks PROPERTIES PREFIX "")
+endif()
+
 set(VNCVIEWER_JAR_PATH ${CMAKE_BINARY_DIR}/java/VncViewer.jar)
 set(INDEX_VNC_PATH ${CMAKE_CURRENT_SOURCE_DIR}/index.vnc)