mirror of
https://github.com/darlinghq/darling-xnu.git
synced 2024-11-26 22:10:24 +00:00
Merge pull request #5 from darlinghq/ubuntu_20.04_adjustments
Fix Building For Ubuntu 20.04
This commit is contained in:
commit
e4a0b762d0
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user