mirror of https://github.com/mgba-emu/mgba.git
CMake: Fix cross compilation with libelf
This commit is contained in:
parent
fa0944c530
commit
38e56597b5
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue