diff --git a/radio/src/definitions.h b/radio/src/definitions.h index 23698e685..d10742275 100644 --- a/radio/src/definitions.h +++ b/radio/src/definitions.h @@ -25,7 +25,9 @@ #include #include +#if !defined(SIMU) #include "memory_sections.h" +#endif #if !defined(M_PI) #define M_PI 3.14159265358979323846 // pi diff --git a/radio/src/targets/simu/CMakeLists.txt b/radio/src/targets/simu/CMakeLists.txt index 664aa9303..f6ed147a7 100644 --- a/radio/src/targets/simu/CMakeLists.txt +++ b/radio/src/targets/simu/CMakeLists.txt @@ -35,6 +35,7 @@ set(SIMU_DRIVERS ${SIMU_DRIVERS} ${CMAKE_CURRENT_BINARY_DIR}/${HW_DESC_JSON} ) include_directories(${CMAKE_CURRENT_BINARY_DIR}) +include_directories(../../targets/simu) if(SDL2_FOUND) include_directories(${SDL2_INCLUDE_DIRS})