diff --git a/CMakeLists.txt b/CMakeLists.txt
index a6d3515dc98e9b601296d14b23b7399ff98404ad..9baa56aca0a329e0e6417afa1260c3c634c18a6e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,6 +14,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
 option(USE_ELFIO "Use the elfio library to parse elf files" OFF)
 if(USE_ELFIO)
    add_definitions(-DUSE_ELFIO)
+   include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third-party/elfio-code/)
 endif()
 
 # Use C++17