tomlplusplus: Allow using system library

This commit is contained in:
Alexandre Bouvier authored and mborgerson committed 2022-06-24 22:21:49 -07:00
1 parent 9d2d8691b5
commit 482b2ea31d
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -838,9 +838,9 @@ if 'CONFIG_OPENGL' in config_host
endif
tomllib = static_library('tomlpp', sources: files('toml.cpp'),
include_directories: 'tomlplusplus')
include_directories: 'tomlplusplus/include')
toml = declare_dependency(compile_args: ['-DTOML_HEADER_ONLY=0'],
include_directories: 'tomlplusplus',
include_directories: 'tomlplusplus/include',
link_with: tomllib)
genconfig = declare_dependency(include_directories: 'genconfig')
+1 -1
View File
@@ -1,3 +1,3 @@
#define TOML_HEADER_ONLY 0
#define TOML_IMPLEMENTATION
#include <toml.hpp>
#include <toml++/toml.h>
+1 -1
View File
@@ -25,7 +25,7 @@
#include <stdbool.h>
#include <assert.h>
#include <stdio.h>
#include <toml.hpp>
#include <toml++/toml.h>
#include <cnode.h>
#include <sstream>
#include <iostream>