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)