The CMakeLists.txt in 5.10.2 adds an 'uninstall' target.
This is fine, except that it frequently conflicts with other CMake files when this is used as a sub-project.
The quick and easy fix is to re-name this target as 'libsbml-uninstall'
I changed the
ADD_CUSTOM_TARGET(uninstall
to
ADD_CUSTOM_TARGET(libsbml-uninstall
on line 1081 of the CMakeLists.txt and it works fine.
NOTICE NOTICE NOTICE
The comments associated with this ticket were lost in late 2014.
The SBML Team manually recovered the comments. The text is appended below.
NOTICE NOTICE NOTICE
Comment By: Frank Bergmann (fbergmann)
Date: 2014-08-26 06:17
Hello Andy,
the uninstall target is primarily intended for those, that previously ran 'make uninstall' after a gnumake configuration, and found the functionality lacking. Renaming the target will not help this primary usecase.
The best I could offer you would be to allow the target to be renamed in case that the libSBML project is not the principle project. That should be the case whenever the CMAKE_SOURCE_DIR differs from the ROOT dir.
would that help?
Comment By: Andy Somogyi (asomogyi)
Date: 2014-08-26 06:45
I think that should work.
If its the primary, there is no reason to change it, as it only causes issues when it conflicts with other sub-projects.
On Aug 26, 2014, at 2:17 AM, Frank Bergmann wrote:
Related
libSBML:
#375I am closing this as it has been noted on Pivotal Tracker but is a low priority.