Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-10-24 | cmake: set CMP0054 to new in preload.cmake | Daniel Mensinger | 1 | -0/+5 | |
https://cmake.org/cmake/help/latest/policy/CMP0054.html | |||||
2020-10-24 | cmake: Disable the new (CMake 3.16) PCH support | Daniel Mensinger | 2 | -0/+18 | |
Subprojects that use the CMake PCH feature will cause compilation/linker errors. The CMake PCH support should thus be disabled until this can be properly translated to meson. | |||||
2020-10-24 | cmake: Always create missing includes in build dir | Daniel Mensinger | 1 | -4/+1 | |
There really isn't any reason to not always create missing include directories inside the build dir. Just restricting this to generate generated sources should work in an ideal world, however, there exists lots of suboptimal CMake code where this assumption is not always true. | |||||
2020-10-16 | cmake: Ignore additional internal CMake variables | Daniel Mensinger | 1 | -0/+9 | |
2020-10-16 | cmake: ignore CMAKE_TOOLCHAIN_FILE and CMAKE_PROJECT_INCLUDE to avoid ↵ | Daniel Mensinger | 3 | -2/+30 | |
conflicts with the meson CMake logic | |||||
2020-10-13 | cmake: Add cross compilation support | Daniel Mensinger | 6 | -243/+292 | |
2020-10-04 | pathlib: Fix resolve() by overriding it in Python 3.5 | Daniel Mensinger | 6 | -6/+7 | |
2020-10-04 | cmake: switch to pathlib (fixes #7322) | Daniel Mensinger | 6 | -247/+246 | |
2020-09-28 | typing: fully annotate cmake.interpreter | Daniel Mensinger | 1 | -171/+198 | |
2020-09-28 | typing: fully annotate cmake.traceparser | Daniel Mensinger | 1 | -32/+45 | |
2020-09-28 | typing: fully annotate cmake.generator | Daniel Mensinger | 1 | -1/+2 | |
2020-09-28 | typing: fully annotate cmake.fileapi | Daniel Mensinger | 1 | -10/+14 | |
2020-09-28 | typing: fully annotate cmake.executor | Daniel Mensinger | 1 | -31/+35 | |
2020-09-27 | typing: fully annotate cmake.common | Daniel Mensinger | 2 | -42/+50 | |
2020-09-27 | typing: fully annotate cmake.client | Daniel Mensinger | 1 | -35/+43 | |
2020-09-10 | cmake: fix shared_module dependency (fixes #7715) | Daniel Mensinger | 1 | -0/+4 | |
2020-08-30 | CMake module: fix cmake 3.10 compatibility in path generation | Sebastian Würl | 1 | -4/+4 | |
2020-08-30 | CMake module: fix python 3.6 compatibility in path generation | Sebastian Würl | 1 | -2/+2 | |
2020-08-30 | CMake module: Allow paths of generated CMake sources for include directories | Sebastian Würl | 1 | -3/+11 | |
2020-08-22 | cmake: Fix detection of AppleClang | Dylan Baker | 1 | -6/+19 | |
It's not enough to detect that the linker is ld64: gcc, icc, and vanilla clang all use ld64 on macoOS. Instead we have to detect the class of the compiler, and determine if it's an Apple Compiler or a vanilla one. | |||||
2020-08-12 | cmake: Use a mapping when writing compiler ID | Nirbheek Chauhan | 1 | -1/+26 | |
Meson and CMake compiler ids are different. This commit adds a mapping from the meson list: https://mesonbuild.com/Reference-tables.html#compiler-ids to the CMake list: https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_COMPILER_ID.html The mapping is not 1-1, and not all entries are mapped, so this is a best-effort attempt. Fallback to GNU as before to try to limp along and hope that the build files don't rely on an accurate compiler ID. | |||||
2020-08-12 | cmake: Fix hard-coded values in fake CMakeLists for MSVC | Nirbheek Chauhan | 1 | -16/+28 | |
Without this, MSVC and MSVC_VERSION won't be set by CMake during platform detection, and the compiler will be an undefined mixture of GNU and MSVC. In particular, find_package(opencv) will fail on Windows when building with MSVC. | |||||
2020-08-09 | cmake: Detect custom command targets in compiler args | Daniel Mensinger | 1 | -1/+8 | |
This is required to make `-include /path/to/custom/target.hpp` work. This setup is used by wxWidgets and this PR is required to use wxWidgets as a CMake subproject. | |||||
2020-08-07 | cmake: make the traceparser permissive by default (fixes #7501) | Daniel Mensinger | 1 | -1/+1 | |
2020-08-05 | Merge pull request #7527 from mensinda/cnFixExe | Jussi Pakkanen | 2 | -4/+16 | |
cmake: resolve IMPORTED executables in custom commands (fixes #7509) | |||||
2020-08-05 | cmake: Do not split CMAKE_PREFIX_PATH with ':' on Windows | Nirbheek Chauhan | 1 | -1/+6 | |
This is obviously wrong, since on Windows ':' is in the drive letter. Causes us to call cmake with `-DCMAKE_PREFIX_PATH=c;\foo\bar`. | |||||
2020-08-03 | cmake: resolve IMPORTED executables in custom commands (fixes #7509) | Daniel Mensinger | 2 | -4/+16 | |
2020-07-16 | mdata: remove setuptools and use mesondata instead | Daniel Mensinger | 1 | -3/+2 | |
2020-07-01 | Merge pull request #7231 from mensinda/cmOverride | Jussi Pakkanen | 3 | -9/+112 | |
cmake: Add more advanced subproject configuration options | |||||
2020-06-30 | Move mesonbuild/cmake/data/run_ctgt.py to ↵ | georgev93 | 2 | -101/+3 | |
mesonbuild/scripts/cmake_run_ctgt.py, as well as enclose everything in a run() function so it can be called by `meson --internal cmake_run_ctgt ...`. Also, include mesonbuild/cmake/data/ in the msi package. | |||||
2020-06-13 | cmake: fix definitions with interface libraries (fixes #7299) | Daniel Mensinger | 1 | -7/+6 | |
2020-06-13 | cmake: Fix handling of path seperators (fixes #7294) | Daniel Mensinger | 1 | -1/+1 | |
2020-06-12 | dependencies: Don't allow using the default binary for host on cross compiles | Dylan Baker | 1 | -1/+1 | |
Otherwise we can end up finding dependencies from the build machine for the host machine, which is incorrect. This alters cmake, pkg-config, and all config-tool based dependencies. Fixes: #7276 | |||||
2020-06-12 | cmake: Use shared find_external_program instead of open coding | Dylan Baker | 1 | -22/+5 | |
2020-06-12 | cmake: Subprojects support CMAKE_PREFIX_PATH (fixes #7249) | Daniel Mensinger | 1 | -0/+22 | |
2020-06-09 | cmake_traceparser: ignore parse error | Michael Hirsch | 1 | -1/+1 | |
2020-06-05 | cmake: Add more advanced subproject configuration options | Daniel Mensinger | 3 | -9/+112 | |
This is done with the new cmake subprojects options object that is similar to the already exisiting configuration data object. It is consumed by the new `options` kwarg of the cmake.subproject function. | |||||
2020-06-02 | cmake: always split property lists (fixes #7228) | Daniel Mensinger | 2 | -3/+4 | |
2020-05-24 | fix cmake target configuration selection. | Alexander Neumann | 1 | -3/+10 | |
2020-05-15 | cmake: Print supported stds when warning | Nirbheek Chauhan | 1 | -2/+4 | |
This was helpful while debugging CI failure on the 0.54 branch due to a difference in the structure of self.env.coredata.compiler_options: https://github.com/mesonbuild/meson/runs/674391139 https://travis-ci.org/github/mesonbuild/meson/jobs/686982807 | |||||
2020-05-14 | cmake: Fix string substitution index error | Nirbheek Chauhan | 1 | -2/+2 | |
``` File "mesonbuild/cmake/interpreter.py", line 293, in postprocess 'Unknown {}_std "{}" -> Ingoring. Try setting the project' IndexError: Replacement index 2 out of range for positional args tuple ``` | |||||
2020-05-12 | cmake: Ignore unknown c(pp)? stds (fixes #7104) | Daniel Mensinger | 1 | -1/+16 | |
2020-05-08 | More robust cmake version detection | Reza Housseini | 1 | -1/+1 | |
2020-04-28 | Adding a conditional case in _guess_files to confirm that the complete path ↵ | georgev93 | 1 | -1/+16 | |
is put together in even if a portion of the path is a location that exists. For instance if C:/Program Files (x86)/folder is passed to _guess_files, it would resolve to ['C:/Program Files', '(x86)/folder'] since C:/Program Files is an actual file location that can exist. | |||||
2020-04-24 | Adjust regex to handle cases such as C:/Program Files/folder | georgev93 | 1 | -1/+1 | |
2020-04-22 | Issue: 7009: CMake/Centos7 Unable to find CMake even though it is installed | Alexandre Lavigne | 1 | -1/+1 | |
On some systems the binary 'cmake' for version 3 is named 'cmake3', therefor printing its version number prints: 'cmake3 version X.Y.Z' instead of 'cmake version X.Y.Z' This '3' digit in the middle breaks the regular expression extracting the version number. The following fix permit both way to work and the regexp to match the proper version number. Signed-off-by: Alexandre Lavigne <alexandre.lavigne@scality.com> | |||||
2020-04-21 | Use pkg_resource to find resources files (data) | Dylan Baker | 1 | -2/+4 | |
Doing this by hand is fraught with corner cases, and we're running into some of those problems already. setuptools pkg_resource is a well tested solution for not running into corner cases, and we already rely on setuptools to make our entry point scripts work, so we might as well make us of the other things it can solve for us. Fixes #6801 | |||||
2020-04-17 | cmake: Do not compile explicit header files | Daniel Mensinger | 3 | -15/+82 | |
2020-04-12 | Merge pull request #6963 from mensinda/cmFixCCmd | Jussi Pakkanen | 2 | -5/+36 | |
cmake: some fixes for add_custom_command | |||||
2020-04-12 | cmake: Preserve include directory order (fixes #6959) | Daniel Mensinger | 1 | -11/+11 | |