[AMBER] Query regarding AMBER24 - "KMMD" CMAKE ERROR - Requesting clarification.

From: MANASA BHARATH via AMBER <amber.ambermd.org>
Date: Tue, 23 Dec 2025 15:21:05 +0530

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
documentation
  for policy CMP0002 for more details.
I have tried downloading the amber installation zip again and, cleaning the
build folder and restarting the installation process but these did not help
at all. The only thing that helped with continuing the cmake process was by
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()
Could any clarification be given if this editing was okay?

-- 
The information contained in this electronic communication is intended 
solely for the individual(s) or entity to which it is addressed. It may 
contain proprietary, confidential and/or legally privileged information. 
Any review, retransmission, dissemination, printing, copying or other use 
of, or taking any action in reliance on the contents of this information by 
person(s) or entities other than the intended recipient is strictly 
prohibited and may be unlawful. If you have received this communication in 
error, please notify us by responding to this email or telephone and 
immediately and permanently delete all copies of this message and any 
attachments from your system(s). The contents of this message do not 
necessarily represent the views or policies of BITS Pilani.
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Tue Dec 23 2025 - 02:00:05 PST
Custom Search