From b2296011f0c68d434e65ad97a0dfa8d8566f3c01 Mon Sep 17 00:00:00 2001 From: Rossen Apostolov Date: Thu, 26 Aug 2010 20:02:56 +0200 Subject: [PATCH] Fixed hardcoded OpenMM library name. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/CMakeLists.txt b/src/kernel/CMakeLists.txt index 422de2046e..c5627b2e51 100644 --- a/src/kernel/CMakeLists.txt +++ b/src/kernel/CMakeLists.txt @@ -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) -- 2.22.0