Fix VMD plugins on Windows
authorRoland Schulz <roland@utk.edu>
Mon, 3 Sep 2012 02:49:27 +0000 (22:49 -0400)
committerRoland Schulz <roland@utk.edu>
Mon, 3 Sep 2012 02:49:27 +0000 (22:49 -0400)
VMD libraries are named *.so even on Windows

Change-Id: I4502af3a716b79820502c70fcfe2fc68749a77fc

cmake/FindVMD.cmake

index 29c34dff1debd74b0012d9b2a172e7b7e8eb581a..7c356007811a93eac32e43641a6f03123ee100da 100644 (file)
@@ -31,8 +31,8 @@ if(NOT "$ENV{VMDDIR}" STREQUAL "")
 endif()
 
 #xyz is just an example. Any other molfile plugin could be used.
-#But some require extra link flags.
-find_library(VMDXYZPLUGIN NAME "xyzplugin${CMAKE_SHARED_LIBRARY_SUFFIX}"
+#But some require extra link flags. VMD uses ".so" even on Windows.
+find_library(VMDXYZPLUGIN NAME "xyzplugin.so"
     PATHS ${VMD_PATHS})
 
 if (VMDXYZPLUGIN)