aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/cmake.py
AgeCommit message (Collapse)AuthorFilesLines
2019-09-26cmake: define set_and_check in CMake package config (fixes #5889)Daniel Mensinger1-0/+12
2019-07-13cmake: Handle disabling subprojectsThibault Saunier1-1/+4
2019-06-09Purge `is_cross` and friends without changing user interfacesJohn Ericson1-1/+1
In most cases instead pass `for_machine`, the name of the relevant machines (what compilers target, what targets run on, etc). This allows us to use the cross code path in the native case, deduplicating the code. As one can see, environment got bigger as more information is kept structured there, while ninjabackend got a smaller. Overall a few amount of lines were added, but the hope is what's added is a lot simpler than what's removed.
2019-06-06cmake: moved subprojects into the CMake moduleDaniel Mensinger1-2/+68
2019-05-20Remove compilers from ModuleState objectJon Turney1-2/+3
It doesn't make much sense to have this and not also have cross-compilers (so any use of this is already pretty suspect as probably wrong when cross-compiling). This information is accessible anyhow via environment.coredata.
2019-04-28cmake: Use CMAKE_ROOT instead of _INCLUDE_FILE (closes #5218)Daniel Mensinger1-10/+2
2019-04-25Don't use len() to test for container emptinessDylan Baker1-1/+1
I ran the numbers once before (it's in the meson history) but it's *much* faster to *not* use len for testing if a container is empty or not.
2019-01-17add support for generating cmake filesDavid Fort1-0/+221
This new cmake module allows to generate cmake package files. This may ease the porting for cmake projects that are exporting cmake package informations for other depending projects. The module uses as much as possible the templates provided by the cmake installation (and so cmake needs to be installed).