rattler-build
rattler-build copied to clipboard
feat: add cmake/pkg-config tests
Ideating some additional checks:
- test if cmake can execute
find_packagesuccessfully - test if pkg-config finds the package successfully
The cmake test unfortunately requires compilers to be installed as CMake is going to search for them.
For pkg-config I am not sure what to call the second key.
Tests look like:
tests:
- cmake:
find_package: [xtensor]
- pkg_config:
pkg_config: [xtensor]
The cmake test unfortunately requires compilers to be installed as CMake is going to search for them.
https://stackoverflow.com/a/46177192/8062017 does this work?
also there is a existing cli tool for cmake https://anaconda.org/conda-forge/cmake-package-check
The cmake test unfortunately requires compilers to be installed as CMake is going to search for them.
https://stackoverflow.com/a/46177192/8062017 does this work?
I would avoid to set the LANGUAGES in CMake to NONE. Even if that permits the basic project to be correctly configured, a <pkg>Config.cmake file may assume that the C or the C++ (as those are the two languages enabled by default in CMake projects) and fails in hard to debug ways in case they are invoked from a NONE project.