From 50cbb9ee436225fcf0e59935028ea86a54778139 Mon Sep 17 00:00:00 2001 From: vintagepc <53943260+vintagepc@users.noreply.github.com> Date: Sat, 7 Sep 2024 10:41:33 -0400 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a1f9d47..2d0087db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -174,7 +174,9 @@ set(H_FILES ${H_FILES_base} ${H_FILES_3rdParty}) if (NOT APPLE) set(NON_APPLE_SRC parts/components/usbip.c) set_source_files_properties(parts/components/usbip.c PROPERTIES SKIP_PRECOMPILE_HEADERS ON) + SET(LIBELF_EXTRA_INCLUDE) else() + SET(LIBELF_EXTRA_INCLUDE "/opt/homebrew/include/") # Stupid workaround set(NON_APPLE_SRC) endif() @@ -346,7 +348,7 @@ if (NOT CPPCHECK_ONLY) #target_link_libraries(Exe ${SDL2_LIBRARIES}) find_package(LibElf REQUIRED) -include_directories(${LIBELF_INCLUDE_DIRS}) +include_directories(${LIBELF_INCLUDE_DIRS} ${LIBELF_EXTRA_INCLUDE}) find_package(SDL2) include_directories(${SDL2_INCLUDE_DIR}) include(FindPNG)