openmm / openmmexampleplugin

An example of how to write a plugin for OpenMM
30 stars 22 forks source link

Fix Debug build #2

Closed zonca closed 10 years ago

zonca commented 10 years ago

Debug builds of the OpenMM example plugin currently fails on CMAKE 2.8 with:

/usr/bin/ld: cannot find -l_d

I think we need to set the variable OPENMM_LIBRARY_NAME to OpenMM.

peastman commented 10 years ago

Actually, the code is even a little more out of date than that. In the latest OpenMM development code, it no longer appends _d to debug libraries. Also, the same problem exists in the OpenCL platform.

I'll send a separate PR to fix all of these.

peastman commented 10 years ago

Changes are committed. Give it a try and see if it works now.

zonca commented 10 years ago

yes, it works! thanks