Fixed hardcoded OpenMM library name.
authorRossen Apostolov <rossen@cbr.su.se>
Thu, 26 Aug 2010 18:02:56 +0000 (20:02 +0200)
committerRossen Apostolov <rossen@cbr.su.se>
Thu, 26 Aug 2010 18:02:56 +0000 (20:02 +0200)
If OpenMM is compiled with debugging information, the build
attaches _d to the library names. Now CMake will be able to
link against them also.

src/kernel/CMakeLists.txt

index 422de2046ec5234e18f367a5e8a753e8bf383a43..c5627b2e51c5d284378217924e614b411a523a4b 100644 (file)
@@ -56,7 +56,7 @@ if(GMX_OPENMM)
     endif()
     add_library(openmm_api_wrapper openmm_wrapper.cpp)
 #    remove_definitions( -DOPENMM_PLUGIN_DIR="${OpenMM_PLUGIN_DIR}" )  # TODO where should this go?!
-    set(GMX_OPENMM_LIBRARIES openmm_api_wrapper gmx_gpu_utils OpenMM)   
+    set(GMX_OPENMM_LIBRARIES openmm_api_wrapper gmx_gpu_utils ${OpenMM_LIBRARIES})   
 endif(GMX_OPENMM)
 
 if(GMX_FAHCORE)