mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
Only link X11 with p3display if HAVE_X11 is enabled.
This commit is contained in:
parent
e0bc369174
commit
ef0170388f
@ -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)
|
||||||
|
if(HAVE_X11)
|
||||||
target_use_packages(p3display 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user