On Tue, Dec 23, 2025, MANASA BHARATH via AMBER wrote:
>While installing AMBER24 for GPU-based MD simulations, this error was
>displayed after ./run_cmake command:
>CMake Error at AmberTools/src/kmmd/CMakeLists.txt:15 (add_library):
> add_library cannot create target "kmmd" because another target with the
> same name already exists. The existing target is an interface library
> created in source directory "/home/<directory name>/pmemd24_src". See
>changing the /home/<directory
>name>/pmemd24_src/AmberTools/src/kmmd/CMakeLists.txt file by putting the
>"add_library(kmmd ${KMMD_SOURCE})" line in an if loop, like this:
>if(NOT TARGET kmmd)
> add_library(kmmd ${KMMD_SOURCE})
>endif()
This looks OK to me. I'm not sure why no one else has reported thiw
problem, or what is causing it.
...good luck...dac
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sun Dec 28 2025 - 08:00:02 PST