From: Rossen Apostolov Date: Thu, 26 Aug 2010 18:02:56 +0000 (+0200) Subject: Fixed hardcoded OpenMM library name. X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=b2296011f0c68d434e65ad97a0dfa8d8566f3c01;p=alexxy%2Fgromacs.git 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. --- 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)