all repos — mgba @ 38e56597b5f6ef471f2b18e5eb268b8cdeed016a

mGBA Game Boy Advance Emulator

CMake: Fix cross compilation with libelf
Vicki Pfau vi@endrift.com
Fri, 21 Jul 2017 15:08:02 -0700
commit

38e56597b5f6ef471f2b18e5eb268b8cdeed016a

parent

fa0944c530b293de226c06a7ba933eaec58be0da

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M CMakeLists.txtCMakeLists.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()