浏览代码

Meson: actually use c_args (#124)

Pass the enabled -DDRIVER_* defines to the compiler, so the activated drivers
are actually registered.
Philipp Zabel 7 年之前
父节点
当前提交
f297652c52
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      meson.build

+ 1 - 1
meson.build

@@ -92,7 +92,7 @@ if _drivers.contains('android')
 endif
 
 
-openhmd_lib = library('openhmd', sources, include_directories : include_directories('./include'), dependencies : deps, install : true, version : library_version)
+openhmd_lib = library('openhmd', sources, include_directories : include_directories('./include'), c_args : c_args, dependencies : deps, install : true, version : library_version)
 
 # build examples and install pkg-config file + header only for shared library. shared is the default
 if get_option('default_library') == 'shared'