Skip to content

Commit

Permalink
Merge pull request #2244 from ndellingwood/issue-2238
Browse files Browse the repository at this point in the history
kokkoskernels_tpls.cmake: remove duplicates arguments when creating a…
  • Loading branch information
ndellingwood authored Jun 13, 2024
2 parents e220db3 + f400cc9 commit c53b5d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/kokkoskernels_tpls.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ MACRO(kokkoskernels_export_imported_tpl NAME)

GET_TARGET_PROPERTY(TPL_INCLUDES ${TPL_IMPORTED_NAME} INTERFACE_INCLUDE_DIRECTORIES)
IF(TPL_INCLUDES)
# remove duplicates to prevent incorrect number of arguments to INTERFACE_INCLUDE_DIRECTORIES
# see issue #2238
LIST(REMOVE_DUPLICATES TPL_INCLUDES)
KOKKOSKERNELS_APPEND_CONFIG_LINE("INTERFACE_INCLUDE_DIRECTORIES ${TPL_INCLUDES}")
ENDIF()

Expand Down

0 comments on commit c53b5d5

Please sign in to comment.