sbmlteam / libsbml

LibSBML is a native library for reading, writing and manipulating files and data streams containing the Systems Biology Markup Language (SBML). It offers language bindings for C, C++, C#, Java, JavaScript, MATLAB, Perl, PHP, Python, R and Ruby.
https://sbml.org/software/libsbml
Other
39 stars 28 forks source link

Linking against libsbml 5.20 via CMake leads to an error. #332

Closed adelhpour closed 1 year ago

adelhpour commented 1 year ago

This is the error I get when I try to configure my project in which I am building a library linked to libsbml.

CMake Error at C:/Users/adel/Documents/Projects/Built/libsbml/install/share/cmake/Modules/FindBZ2.cmake:55 (check_library_exists): Unknown CMake command "check_library_exists".

CMake Error at C:/Users/adel/Documents/Projects/Built/libsbml/install/share/cmake/Modules/FindLIBXML.cmake:124 (CHECK_C_SOURCE_COMPILES): Unknown CMake command "CHECK_C_SOURCE_COMPILES".

I think there are some missing modules in find-dependency-.cmake scripts. I have modified those scripts and created the pull request #331

fbergmann commented 1 year ago

Thank you for the PR, I've just approved and merged it.