Make CMake stop complaining about target "Udns::Udns" not found when rebuilding SimGear.

This commit is contained in:
Bertrand Coconnier 2020-10-03 17:58:11 +02:00
parent 670460a079
commit 8c51d30ddb

View File

@ -38,9 +38,10 @@ else ()
# show the UDNS_INCLUDE_DIRS and UDNS_LIBRARIES variables only in the advanced view
mark_as_advanced(UDNS_INCLUDE_DIRS UDNS_LIBRARIES)
endif ()
if(UDNS_FOUND)
if(UDNS_FOUND)
if(NOT TARGET Udns::Udns)
add_library(Udns::Udns UNKNOWN IMPORTED)
set_target_properties(Udns::Udns PROPERTIES
@ -52,6 +53,3 @@ else ()
endif()
endif()
endif ()