parent
bd6f46e723
commit
8e1c599c10
5 changed files with 26 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
project('cmake-executable-dependency', ['c', 'cpp']) |
||||
|
||||
if not find_program('cmake', required: false).found() |
||||
error('MESON_SKIP_TEST CMake is not installed') |
||||
endif |
||||
|
||||
cmake = import('cmake') |
||||
cmlib = cmake.subproject('cmlib') |
||||
maind = cmlib.dependency('main') |
@ -0,0 +1,5 @@ |
||||
cmake_minimum_required(VERSION 3.5) |
||||
|
||||
project(cmlib) |
||||
|
||||
add_executable(main main.c) |
@ -0,0 +1,3 @@ |
||||
int main(void) { |
||||
return 0; |
||||
} |
@ -0,0 +1,7 @@ |
||||
{ |
||||
"stdout": [ |
||||
{ |
||||
"line": "test cases/failing/116 cmake executable dependency/meson.build:9:0: ERROR: main is an executable and does not support the dependency() method. Use target() instead." |
||||
} |
||||
] |
||||
} |
Loading…
Reference in new issue