Browse Source

Only link X11 with p3display if HAVE_X11 is enabled.

Donny Lawrence 7 years ago
parent
commit
ef0170388f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      panda/src/display/CMakeLists.txt

+ 3 - 1
panda/src/display/CMakeLists.txt

@@ -90,7 +90,9 @@ composite_sources(p3display P3DISPLAY_SOURCES)
 add_component_library(p3display SYMBOL BUILDING_PANDA_DISPLAY
 add_component_library(p3display SYMBOL BUILDING_PANDA_DISPLAY
   ${P3DISPLAY_HEADERS} ${P3DISPLAY_SOURCES})
   ${P3DISPLAY_HEADERS} ${P3DISPLAY_SOURCES})
 target_link_libraries(p3display p3cull p3pgraphnodes)
 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})
 target_interrogate(p3display ALL EXTENSIONS ${P3DISPLAY_IGATEEXT})
 
 
 install(TARGETS p3display DESTINATION lib)
 install(TARGETS p3display DESTINATION lib)