Skip to content
Snippets Groups Projects
Commit f3d0978d authored by Jakob Olsson's avatar Jakob Olsson
Browse files

fix linking issues at compilations

parent a64dd8d2
Branches
No related tags found
No related merge requests found
...@@ -106,8 +106,7 @@ target_link_libraries(json-validator ...@@ -106,8 +106,7 @@ target_link_libraries(json-validator
target_link_libraries(json-validator target_link_libraries(json-validator
PUBLIC PUBLIC
${LIBUBOX_LIBRARIES}) libubox)
# regex with boost if gcc < 4.9 - default is std::regex # regex with boost if gcc < 4.9 - default is std::regex
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9.0") if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9.0")
......
#include <iostream> #include <iostream>
#include <iomanip> #include <iomanip>
#include <stdbool.h>
extern "C"
{
#include <libubox/avl.h> #include <libubox/avl.h>
#include <libubox/avl-cmp.h> #include <libubox/avl-cmp.h>
#include <libubox/blobmsg.h> #include <libubox/blobmsg.h>
...@@ -11,8 +12,12 @@ ...@@ -11,8 +12,12 @@
#include <glob.h> #include <glob.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <regex.h>
#include <stdbool.h>
#include <json-c/json.h> #include <json-c/json.h>
}
#include <json-schema.hpp> #include <json-schema.hpp>
#include <regex.h> #include <regex.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment