From ef0170388f2ce83ac406fa89f3d4582923e55df8 Mon Sep 17 00:00:00 2001 From: Donny Lawrence Date: Mon, 28 May 2018 16:13:26 -0500 Subject: [PATCH] Only link X11 with p3display if HAVE_X11 is enabled. --- panda/src/display/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/panda/src/display/CMakeLists.txt b/panda/src/display/CMakeLists.txt index a8479dc9a2..b7e0a0d8a8 100644 --- a/panda/src/display/CMakeLists.txt +++ b/panda/src/display/CMakeLists.txt @@ -90,7 +90,9 @@ composite_sources(p3display P3DISPLAY_SOURCES) add_component_library(p3display SYMBOL BUILDING_PANDA_DISPLAY ${P3DISPLAY_HEADERS} ${P3DISPLAY_SOURCES}) target_link_libraries(p3display p3cull p3pgraphnodes) -target_use_packages(p3display X11) +if(HAVE_X11) + target_use_packages(p3display X11) +endif() target_interrogate(p3display ALL EXTENSIONS ${P3DISPLAY_IGATEEXT}) install(TARGETS p3display DESTINATION lib)