File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,11 @@ target_link_libraries(TracyImGui PUBLIC TracyFreetype)
162162target_compile_definitions (TracyImGui PRIVATE "IMGUI_ENABLE_FREETYPE" )
163163#target_compile_definitions(TracyImGui PUBLIC "IMGUI_DISABLE_OBSOLETE_FUNCTIONS")
164164
165+ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND LEGACY)
166+ find_package (X11 REQUIRED)
167+ target_link_libraries (TracyImGui PUBLIC ${X11_LIBRARIES} )
168+ endif ()
169+
165170if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" )
166171 target_compile_definitions (TracyImGui PRIVATE "IMGUI_DISABLE_DEBUG_TOOLS" "IMGUI_DISABLE_DEMO_WINDOWS" )
167172endif ()
@@ -294,4 +299,4 @@ if(NOT EMSCRIPTEN)
294299 target_include_directories (TracyLibcurl INTERFACE ${libcurl_SOURCE_DIR} /include )
295300 endif ()
296301
297- endif ()
302+ endif ()
You can’t perform that action at this time.
0 commit comments