Daniel Mensinger
4f6453bc32
cmake: Use trace for missing link flags ( fixes #6386 )
...
This is neccessary for static libraries, since the
CMake file API does not add link flags here.
5 years ago
Daniel Mensinger
77e0008a1f
cmake: Fix obeject libraries
...
This fixes an issue with generated sources and object libraries, as
well as an issue on windows with the `link` linker and the vs backend.
The last issue is resolved by building the source files multiple times
to avoid extracting object files in meson.
5 years ago
Michael Hirsch, Ph.D
8a57b608ad
ci cmake: Windows link.exe skip due to symbol issues
5 years ago
Michael Hirsch, Ph.D
6eb67ee848
cmake test: skip case where Cmake backend not Fortran-compatible
5 years ago
Michael Hirsch, Ph.D
98fd4e5557
cmake: add project language to cmakelists.txt
...
cmake: get language from Meson project if not specified as depedency(..., langugage: ...)
deps: add threads method:cmake
dependency('threads', method: 'cmake') is useful for cmake unit tests
or those who just want to find threads using cmake.
cmake: project(... Fortran) generally also requires C language
5 years ago
Daniel Mensinger
36749a1625
cmake: Make output_target_map more robust ( fixes #6208 )
...
This PR refactors the old output_target_map, which was a
raw dict, into it's own class. This makes the access to
the map more uniform and robust (at the cost of more lines
of code).
Additionally relative paths to the build directory are
now also tracked for outputs. This is neccessary to
corretcly distingluish files with the same name, that are
in different directories.
5 years ago
Daniel Mensinger
b2b9c102b5
cmake: Some minor fixup
5 years ago
Xavier Claessens
8efbcb1e80
cmake: Add unit test for add_custom_target() and add_dependency()
...
Also test commands with args separated by ';'
5 years ago
Daniel Mensinger
560c4f7f96
cmake: Uniform target name handling
5 years ago
Daniel Mensinger
b4af3328a4
cmake: Skip system include dir test for msvc
5 years ago
Daniel Mensinger
3e1435a968
cmake: Handle CMake system include dirs ( closes #6079 )
5 years ago
Michael Hirsch, Ph.D
83b4e981c4
Use strict function prototypes
5 years ago
Daniel Mensinger
30a668d0bb
cmake: Blacklist more compiler warning flags
5 years ago
Daniel Mensinger
b0d35ec349
cmake: Add test case for #5992
5 years ago
Jussi Pakkanen
f39600647d
Condense test directory names.
5 years ago
Daniel Mensinger
07f48851d0
cmake: added generator expression test case
5 years ago
Daniel Mensinger
497fbf0ce0
cmake: Added interface libraries test case
5 years ago
Michael Hirsch, Ph.D
b7a5d6b384
add cross-platform test for cmake_module_path
...
This test tolerates CMake >= 3.7, and checks that
dependency(..., cmake_module_path=...) works on any OS with CMake.
5 years ago
Thibault Saunier
6813ef1e24
cmake: Handle disabling subprojects
6 years ago
Daniel Mensinger
71a5ff718a
cmake: Skip ARGS key in COMMAND
6 years ago
Daniel Mensinger
647d80f34c
cmake: Added custom_target test case
6 years ago
Daniel Mensinger
44b9421071
cmake: Fix missing include_directories in some CMakeLists.txt
6 years ago
Daniel Mensinger
2f998cd8d5
cmake: Updated test cases
6 years ago
Daniel Mensinger
cb57847c30
cmake: fixed installed_files.txt
6 years ago
Daniel Mensinger
7c4f46b65c
cmake: Fixed test cases for windows
6 years ago
Daniel Mensinger
3d7c50d109
cmake: Added option for additional CMake args
6 years ago
Daniel Mensinger
1041c71eb0
cmake: support object libraries
6 years ago
Daniel Mensinger
f73b36c2f3
cmake: Added test for configure_file
6 years ago
Daniel Mensinger
d9481f2359
cmake: Added Code generation test
6 years ago
Daniel Mensinger
bf81aac465
cmake: Added project tests
6 years ago
Daniel Mensinger
5089eb356b
cmake: extract the codemodel
6 years ago
Daniel Mensinger
8d3bd6eea8
cmake: Server handshake
6 years ago