mirror of
https://github.com/SFML/SFML.git
synced 2025-02-19 06:39:59 +08:00
Exit early if UDev::UDev
target already exists
This prevents a potential error where two projects in a larger build graph depend on UDev and both attempt to create the same target.
This commit is contained in:
parent
8c9ffe972f
commit
a7167c8603
@ -9,6 +9,10 @@
|
||||
# Redistribution and use of this file is allowed according to the terms of the BSD license.
|
||||
#
|
||||
|
||||
if(TARGET UDev::UDev)
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_path(
|
||||
UDEV_INCLUDE_DIR
|
||||
libudev.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user