Skip to content

Commit

Permalink
Merge pull request #286 from nlesc-recruit/fix-helper
Browse files Browse the repository at this point in the history
Fix inline_local_includes without local includes
  • Loading branch information
john-romein authored Jul 4, 2024
2 parents e655242 + 566d0f8 commit 13b7023
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/cudawrappers-helper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ function(inline_local_includes input_file output_file)
foreach(include ${includes})
string(REGEX REPLACE ${include_regex} "\\1" include ${include})
file(GLOB_RECURSE INCLUDE_PATHS "${PROJECT_SOURCE_DIR}/*/${include}")
if(INCLUDE_PATHS STREQUAL "")
return()
endif()
list(SORT INCLUDE_PATHS ORDER DESCENDING)
list(GET INCLUDE_PATHS 0 include_PATH)
list(APPEND include_files ${include_PATH})
Expand Down

0 comments on commit 13b7023

Please sign in to comment.