CMake: Fix cross compilation with libelf
Vicki Pfau vi@endrift.com
Fri, 21 Jul 2017 15:08:02 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
CMakeLists.txt
→
CMakeLists.txt
@@ -607,7 +607,7 @@
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()