Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagepc authored Sep 7, 2024
1 parent 7063b24 commit 50cbb9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 50cbb9e

Please sign in to comment.