Remove duplicate check for X11
This commit is contained in:
parent
5b90c0d695
commit
33ccb5dbb2
@ -1189,11 +1189,10 @@ if(WIN32)
|
|||||||
target_link_libraries(strawberry_lib PRIVATE dsound)
|
target_link_libraries(strawberry_lib PRIVATE dsound)
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(X11_FOUND)
|
||||||
# Hack: the Gold linker pays attention to the order that libraries are specified on the link line.
|
# Hack: the Gold linker pays attention to the order that libraries are specified on the link line.
|
||||||
# -lX11 and -ldl are provided earlier in the link command but they're actually used by libraries that appear after them, so they end up getting ignored.
|
# -lX11 and -ldl are provided earlier in the link command but they're actually used by libraries that appear after them, so they end up getting ignored.
|
||||||
# This appends them to the very end of the link line, ensuring they're always used.
|
# This appends them to the very end of the link line, ensuring they're always used.
|
||||||
find_package(X11)
|
|
||||||
if(FREEBSD)
|
if(FREEBSD)
|
||||||
target_link_libraries(strawberry_lib PRIVATE ${X11_X11_LIB})
|
target_link_libraries(strawberry_lib PRIVATE ${X11_X11_LIB})
|
||||||
else()
|
else()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user