From dd81185294bdda4203c747a9ce5c19a63c55dbd4 Mon Sep 17 00:00:00 2001 From: michele papalini Date: Mon, 18 Feb 2019 16:12:36 +0100 Subject: [HICN-69] add compiler definitions for programs using hicn Change-Id: If20c1e487ca4d9c00ffeebe09f31b475b354e293 Signed-off-by: michele papalini --- libtransport/src/hicn/transport/CMakeLists.txt | 6 ++++-- libtransport/src/hicn/transport/config.h.in | 1 + libtransport/src/hicn/transport/core/pending_interest.h | 1 + libtransport/src/hicn/transport/core/raw_socket_connector.h | 1 + libtransport/src/hicn/transport/core/tcp_socket_connector.h | 1 + libtransport/src/hicn/transport/core/udp_socket_connector.h | 1 + 6 files changed, 9 insertions(+), 2 deletions(-) (limited to 'libtransport/src/hicn') diff --git a/libtransport/src/hicn/transport/CMakeLists.txt b/libtransport/src/hicn/transport/CMakeLists.txt index c0481ad6f..e73a3407a 100644 --- a/libtransport/src/hicn/transport/CMakeLists.txt +++ b/libtransport/src/hicn/transport/CMakeLists.txt @@ -13,6 +13,8 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) +set(ASIO_STANDALONE 1) + configure_file("config.h.in" "config.h" @ONLY) install( FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h @@ -28,7 +30,7 @@ add_subdirectory(portability) add_subdirectory(protocols) add_subdirectory(utils) -set (COMPILER_DEFINITIONS "-DASIO_STANDALONE") +set (COMPILER_DEFINITIONS "") list(APPEND LIBTRANSPORT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../.. @@ -63,4 +65,4 @@ build_library(${LIBTRANSPORT} if (${COMPILE_TESTS}) add_subdirectory(core/test) add_subdirectory(transport/test) -endif() \ No newline at end of file +endif() diff --git a/libtransport/src/hicn/transport/config.h.in b/libtransport/src/hicn/transport/config.h.in index a140f4b78..02dcfa0f3 100644 --- a/libtransport/src/hicn/transport/config.h.in +++ b/libtransport/src/hicn/transport/config.h.in @@ -16,6 +16,7 @@ #pragma once #cmakedefine TRANSPORT_HAVE_PTHREAD 1 +#cmakedefine ASIO_STANDALONE #define RAAQM_CONFIG_PATH "@raaqm_config_path@" diff --git a/libtransport/src/hicn/transport/core/pending_interest.h b/libtransport/src/hicn/transport/core/pending_interest.h index 9a26c7b2b..3b2442d76 100644 --- a/libtransport/src/hicn/transport/core/pending_interest.h +++ b/libtransport/src/hicn/transport/core/pending_interest.h @@ -15,6 +15,7 @@ #pragma once +#include #include #include #include diff --git a/libtransport/src/hicn/transport/core/raw_socket_connector.h b/libtransport/src/hicn/transport/core/raw_socket_connector.h index bb24d9d54..a307af8f2 100644 --- a/libtransport/src/hicn/transport/core/raw_socket_connector.h +++ b/libtransport/src/hicn/transport/core/raw_socket_connector.h @@ -18,6 +18,7 @@ #include #include +#include #include #include #include diff --git a/libtransport/src/hicn/transport/core/tcp_socket_connector.h b/libtransport/src/hicn/transport/core/tcp_socket_connector.h index 8dfda4eb8..ca9d2b663 100644 --- a/libtransport/src/hicn/transport/core/tcp_socket_connector.h +++ b/libtransport/src/hicn/transport/core/tcp_socket_connector.h @@ -15,6 +15,7 @@ #pragma once +#include #include #include #include diff --git a/libtransport/src/hicn/transport/core/udp_socket_connector.h b/libtransport/src/hicn/transport/core/udp_socket_connector.h index 4704fa50b..4cde8f2eb 100644 --- a/libtransport/src/hicn/transport/core/udp_socket_connector.h +++ b/libtransport/src/hicn/transport/core/udp_socket_connector.h @@ -15,6 +15,7 @@ #pragma once +#include #include #include #include -- cgit 1.2.3-korg