From f463baf627d76634a29ab57714f4cd138f493432 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Wed, 4 Nov 2015 00:09:34 +0100 Subject: [PATCH] Fix out-of-tree builds after 3203ed1, sorry (fix #32) --- CMakeLists.txt | 1 + src/portable.h | 2 +- src/xbt/dict.c | 2 +- src/xbt/xbt_sha.c | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f793f39940..3904250ed0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,6 +153,7 @@ set(INCLUDES ${CMAKE_HOME_DIRECTORY} ${CMAKE_HOME_DIRECTORY}/include ${CMAKE_HOME_DIRECTORY}/src/include + ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/include ) diff --git a/src/portable.h b/src/portable.h index d3d435ba7d..7ccd0a7d64 100644 --- a/src/portable.h +++ b/src/portable.h @@ -10,7 +10,7 @@ #ifndef SIMGRID_PORTABLE_H #define SIMGRID_PORTABLE_H -#include "internal_config.h" +#include "src/internal_config.h" #include "xbt/base.h" #include "xbt/misc.h" #ifdef _XBT_WIN32 diff --git a/src/xbt/dict.c b/src/xbt/dict.c index b48640365f..8208fe5194 100644 --- a/src/xbt/dict.c +++ b/src/xbt/dict.c @@ -676,7 +676,7 @@ void xbt_dict_postexit(void) #ifdef SIMGRID_TEST #include "xbt.h" #include "xbt/ex.h" -#include "portable.h" +#include "src/portable.h" #define PRINTF_STR(a) (a)?:"(null)" diff --git a/src/xbt/xbt_sha.c b/src/xbt/xbt_sha.c index e2973ca8c8..d6223e2692 100644 --- a/src/xbt/xbt_sha.c +++ b/src/xbt/xbt_sha.c @@ -177,7 +177,7 @@ static void sha_calculate(xbt_sha_t sha) /* ************* */ #ifdef SIMGRID_TEST #include "xbt/hash.h" -#include "portable.h" /* hexa_str */ +#include "src/portable.h" /* hexa_str */ static char *mycmp(const char *p1, const char *p2, size_t n) { -- 2.20.1