mirror of
https://github.com/darlinghq/darling-xnu.git
synced 2024-11-23 04:29:53 +00:00
Run Command "realpath" Instead
Unfortunately, Ubuntu 20.04 only offers version CMake 3.16. This means we can't use `file(REAL_PATH ...)`
This commit is contained in:
parent
6d94d59c21
commit
9cb8fdcf72
@ -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