mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fix non-wayland build.
This commit is contained in:
parent
970250fc85
commit
58115b35c5
@ -134,7 +134,7 @@ set(PROFILER_FILES
|
||||
set(INCLUDES "")
|
||||
set(LIBS "")
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT LEGACY)
|
||||
if(USE_WAYLAND)
|
||||
pkg_check_modules(WAYLAND REQUIRED egl wayland-egl wayland-cursor xkbcommon)
|
||||
set(INCLUDES "${INCLUDES};${WAYLAND_INCLUDE_DIRS}")
|
||||
set(LIBS "${LIBS};${WAYLAND_LIBRARIES}")
|
||||
@ -144,6 +144,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT LEGACY)
|
||||
src/wayland/xdg-decoration.c
|
||||
src/wayland/xdg-shell.c
|
||||
)
|
||||
else()
|
||||
set(PROFILER_FILES ${PROFILER_FILES}
|
||||
src/BackendGlfw.cpp
|
||||
src/imgui/imgui_impl_glfw.cpp
|
||||
)
|
||||
endif()
|
||||
|
||||
include_directories(${INCLUDES})
|
||||
|
Loading…
Reference in New Issue
Block a user