Skip to content

Commit 571b5f6

Browse files
authored
Merge pull request #123 from danilw/main
Fix detection of wayland-client.h
2 parents ec509c3 + bcb9948 commit 571b5f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,9 @@ if(NRI_ENABLE_VK_SUPPORT)
454454
endif()
455455

456456
if(NRI_ENABLE_WAYLAND_SUPPORT)
457-
find_path(WAYLAND_HEADERS NAMES "wayland-client.h")
457+
set(WAYLAND_INCLUDE_DIR "/usr/include/wayland")
458+
MESSAGE(STATUS " Wayland include path ${WAYLAND_INCLUDE_DIR}")
459+
find_path(WAYLAND_HEADERS NAMES "wayland-client.h" HINTS ${WAYLAND_INCLUDE_DIR})
458460

459461
if(NOT WAYLAND_HEADERS)
460462
message(FATAL_ERROR "Can't find 'wayland-client.h'. 'libwayland-dev' is not installed?")
@@ -713,4 +715,4 @@ if(NRI_ENABLE_NIS_SDK)
713715
target_link_libraries(NRI_Shared PRIVATE ShaderMakeBlob)
714716

715717
message("NRI: setting shaders path to '${NRI_SHADERS_PATH}'")
716-
endif()
718+
endif()

0 commit comments

Comments
 (0)