|
|
@ -110,7 +110,7 @@ dependency you have. |
|
|
|
```meson |
|
|
|
```meson |
|
|
|
dep = dependency('could_be_cmake_or_pkgconfig') |
|
|
|
dep = dependency('could_be_cmake_or_pkgconfig') |
|
|
|
# cmake returns 'YES', pkg-config returns 'ON' |
|
|
|
# cmake returns 'YES', pkg-config returns 'ON' |
|
|
|
if ['YES', 'ON'].contains(dep.get_variable(pkg-config : 'var-name', cmake : 'COP_VAR_NAME', default_value : 'NO')) |
|
|
|
if ['YES', 'ON'].contains(dep.get_variable(pkgconfig : 'var-name', cmake : 'COP_VAR_NAME', default_value : 'NO')) |
|
|
|
error('Cannot build your project when dep is built with var-name support') |
|
|
|
error('Cannot build your project when dep is built with var-name support') |
|
|
|
endif |
|
|
|
endif |
|
|
|
``` |
|
|
|
``` |
|
|
|