From fed22abd627c7f926300cf3ae9631bddd517753a Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Thu, 29 Feb 2024 12:24:58 +0200 Subject: [PATCH] config.cmake: drop onelib target Signed-off-by: Martin Valgur --- cmake/urdfdom-config.cmake.in | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/cmake/urdfdom-config.cmake.in b/cmake/urdfdom-config.cmake.in index 7e6b57cb..ebdfdfa0 100644 --- a/cmake/urdfdom-config.cmake.in +++ b/cmake/urdfdom-config.cmake.in @@ -14,27 +14,6 @@ if(@APPEND_PROJECT_NAME_TO_INCLUDEDIR@) endif() foreach(lib @PKG_LIBRARIES@) - set(onelib "${lib}-NOTFOUND") - set(onelibd "${lib}-NOTFOUND") - find_library(onelib ${lib} - PATHS "@PACKAGE_CMAKE_INSTALL_LIBDIR@" - NO_DEFAULT_PATH) - find_library(onelibd ${lib}d - PATHS "@PACKAGE_CMAKE_INSTALL_LIBDIR@" - NO_DEFAULT_PATH) - if(onelib-NOTFOUND AND onelibd-NOTFOUND) - message(FATAL_ERROR "Library '${lib}' in package @PKG_NAME@ is not installed properly") - endif() - if(onelib AND onelibd) - list(APPEND @PKG_NAME@_LIBRARIES $<$>:${onelib}>) - list(APPEND @PKG_NAME@_LIBRARIES $<$:${onelibd}>) - else() - if(onelib) - list(APPEND @PKG_NAME@_LIBRARIES ${onelib}) - else() - list(APPEND @PKG_NAME@_LIBRARIES ${onelibd}) - endif() - endif() list(APPEND @PKG_NAME@_TARGETS @PROJECT_NAME@::${lib}) endforeach()