Skip to content

Commit 151fbdf

Browse files
committed
config.cmake: drop onelib target
1 parent 9492c5a commit 151fbdf

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

cmake/urdfdom-config.cmake.in

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,6 @@ if(@APPEND_PROJECT_NAME_TO_INCLUDEDIR@)
1414
endif()
1515

1616
foreach(lib @PKG_LIBRARIES@)
17-
set(onelib "${lib}-NOTFOUND")
18-
set(onelibd "${lib}-NOTFOUND")
19-
find_library(onelib ${lib}
20-
PATHS "@PACKAGE_CMAKE_INSTALL_LIBDIR@"
21-
NO_DEFAULT_PATH)
22-
find_library(onelibd ${lib}d
23-
PATHS "@PACKAGE_CMAKE_INSTALL_LIBDIR@"
24-
NO_DEFAULT_PATH)
25-
if(onelib-NOTFOUND AND onelibd-NOTFOUND)
26-
message(FATAL_ERROR "Library '${lib}' in package @PKG_NAME@ is not installed properly")
27-
endif()
28-
if(onelib AND onelibd)
29-
list(APPEND @PKG_NAME@_LIBRARIES $<$<NOT:$<CONFIG:Debug>>:${onelib}>)
30-
list(APPEND @PKG_NAME@_LIBRARIES $<$<CONFIG:Debug>:${onelibd}>)
31-
else()
32-
if(onelib)
33-
list(APPEND @PKG_NAME@_LIBRARIES ${onelib})
34-
else()
35-
list(APPEND @PKG_NAME@_LIBRARIES ${onelibd})
36-
endif()
37-
endif()
3817
list(APPEND @PKG_NAME@_TARGETS @PROJECT_NAME@::${lib})
3918
endforeach()
4019

0 commit comments

Comments
 (0)