meson.build(): don't use absolute path for include_dir()
authorNikolaus Rath <Nikolaus@rath.org>
Wed, 15 Mar 2017 23:52:39 +0000 (16:52 -0700)
committerNikolaus Rath <Nikolaus@rath.org>
Wed, 15 Mar 2017 23:52:39 +0000 (16:52 -0700)
No longer supported in Meson 0.39.

meson.build

index bcb3a104b879ac7e85882a49dadcbc7d4ec72130..71c8ae23d855f249a3488f371b68947b2bdf7916 100644 (file)
@@ -76,9 +76,8 @@ if not cc.compiles(code, args: [ '-O0', '-Werror=unused-result' ])
      add_global_arguments('-Wno-unused-result', language: 'c')
 endif
 
-# current_build_dir() contains config.h
-include_dirs = include_directories('include', 'lib',
-                                   meson.current_build_dir())
+# '.' will refer to current build directory, which contains config.h
+include_dirs = include_directories('include', 'lib', '.')
 
 # Common dependencies
 thread_dep = dependency('threads')