From 8c51d30ddbe51535fbf76951892d7cdc3bfcdc52 Mon Sep 17 00:00:00 2001 From: Bertrand Coconnier Date: Sat, 3 Oct 2020 17:58:11 +0200 Subject: [PATCH] Make CMake stop complaining about target "Udns::Udns" not found when rebuilding SimGear. --- CMakeModules/FindUdns.cmake | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeModules/FindUdns.cmake b/CMakeModules/FindUdns.cmake index 260bbc11..013ce85d 100644 --- a/CMakeModules/FindUdns.cmake +++ b/CMakeModules/FindUdns.cmake @@ -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 ()