Skip to content

Commit

Permalink
config.cmake: drop onelib target
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Feb 29, 2024
1 parent 9492c5a commit 151fbdf
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions cmake/urdfdom-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<$<NOT:$<CONFIG:Debug>>:${onelib}>)
list(APPEND @PKG_NAME@_LIBRARIES $<$<CONFIG:Debug>:${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()

Expand Down

0 comments on commit 151fbdf

Please sign in to comment.