Fix include issue with older Meson versions, see #131
This commit is contained in:
@@ -80,6 +80,8 @@ if get_option('standalone')
|
|||||||
language: 'c')
|
language: 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
glava_headers = include_directories('glava')
|
||||||
|
|
||||||
add_project_arguments(
|
add_project_arguments(
|
||||||
'-DGLAVA_VERSION="'+glava_version+'"',
|
'-DGLAVA_VERSION="'+glava_version+'"',
|
||||||
'-DSHADER_INSTALL_PATH="'+shaderdir+'/glava"',
|
'-DSHADER_INSTALL_PATH="'+shaderdir+'/glava"',
|
||||||
@@ -99,7 +101,7 @@ executable(
|
|||||||
'glava',
|
'glava',
|
||||||
sources: run_command('find', 'glava-cli', '-type', 'f', '-name', '*.c', '-print').stdout().strip().split('\n'),
|
sources: run_command('find', 'glava-cli', '-type', 'f', '-name', '*.c', '-print').stdout().strip().split('\n'),
|
||||||
link_with: libglava,
|
link_with: libglava,
|
||||||
include_directories: 'glava',
|
include_directories: glava_headers,
|
||||||
install: true
|
install: true
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user