libsbml uses it's own library finding code in cmake. If this were changed to to use the standard built-in cmake find_package(...) routines, it would work out of the box with vcpkg libraries. This would make building on windows a lot easier.
It looks like on Windows, the libsbml cmake oriented to use the libsbml_dependencies zip file.
A problem wiht this, is that all these dependency packages have made lots of performance and security updates and the libsbml_dependencies package is very old.
If libsbml could use the packages in vckpg usign the standard cmake find_package commands, this would let you use all the new, updated packages directly, without having to maintian them in the libsbml_dependency
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've experimented with a libsbml vcpkg, unfortunately i had problems with the check library. Its been a while though, so something might have improved there, here the experiment:
In the end i decided to use conan rather than vcpkg, since vcpkg did not work as nicely on other platforms. (and i found vcpkg to work nice on windows with visual studio, but not as nice for other things). Maybe things have improved:
It looks like on Windows, the libsbml cmake oriented to use the libsbml_dependencies zip file.
A problem wiht this, is that all these dependency packages have made lots of performance and security updates and the libsbml_dependencies package is very old.
If libsbml could use the packages in vckpg usign the standard cmake find_package commands, this would let you use all the new, updated packages directly, without having to maintian them in the libsbml_dependency
I've experimented with a libsbml vcpkg, unfortunately i had problems with the check library. Its been a while though, so something might have improved there, here the experiment:
https://github.com/fbergmann/vcpkg
In the end i decided to use conan rather than vcpkg, since vcpkg did not work as nicely on other platforms. (and i found vcpkg to work nice on windows with visual studio, but not as nice for other things). Maybe things have improved:
https://github.com/fbergmann/conan-libsbml
cheers
Frank