CMake: Fix cross compilation with libelf

This commit is contained in:
Vicki Pfau 2017-07-21 15:08:02 -07:00
parent fa0944c530
commit 38e56597b5
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ endif()
if(USE_ELF)
list(APPEND FEATURES ELF)
include_directories(AFTER ${LIBELF_INCLUDE_DIRS})
find_file(ELF_REPL_H elf_repl.h PATHS ${LIBELF_INCLUDE_DIRS})
find_file(ELF_REPL_H elf_repl.h PATHS ${LIBELF_INCLUDE_DIRS} NO_CMAKE_FIND_ROOT_PATH)
if (ELF_REPL_H)
add_definitions(-DUSE_ELF_REPL)
endif()