Merge pull request #5 from darlinghq/ubuntu_20.04_adjustments

Fix Building For Ubuntu 20.04
This commit is contained in:
CuriousTommy 2023-09-03 19:18:11 -07:00 committed by GitHub
commit e4a0b762d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ add_definitions(-DIOKIT_ALL_IPC=1 -DIOKIT=1)
# because this directory is symlinked and added as a subdirectory under `darling/src/libsystem_kernel`,
# cmake and its generators sometimes get confused with include paths when using `..`.
# let's just resolve the actual directory and use that instead.
file(REAL_PATH "${CMAKE_CURRENT_SOURCE_DIR}" CURRENT_SOURCE_DIR_NO_SYMLINKS)
execute_process(COMMAND "realpath" "${CMAKE_CURRENT_SOURCE_DIR}" OUTPUT_VARIABLE CURRENT_SOURCE_DIR_NO_SYMLINKS OUTPUT_STRIP_TRAILING_WHITESPACE)
include_directories("${CURRENT_SOURCE_DIR_NO_SYMLINKS}/../osfmk")
include_directories(