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()