Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Change debug / optimized for generator expressions (#16)
Browse files Browse the repository at this point in the history
* Change debug / optimized for generator expressions

Signed-off-by: Luca Della Vedova <[email protected]>

* Fixed brackets and variable name

Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova authored Feb 13, 2020
1 parent c756477 commit 776eb65
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cmake/urdfdom-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@ foreach(lib @PKG_LIBRARIES@)
if(onelib-NOTFOUND AND onelibd-NOTFOUND)
message(FATAL_ERROR "Library '${lib}' in package @PKG_NAME@ is not installed properly")
endif()
if(onelib)
list(APPEND @PKG_NAME@_LIBRARIES optimized ${onelib})
endif()
if(onelibd)
list(APPEND @PKG_NAME@_LIBRARIES debug ${onelibd})
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()
endforeach()

Expand Down

0 comments on commit 776eb65

Please sign in to comment.