Skip to content

Commit

Permalink
cmake: fix hello_imgui_copy_folder1_files_missing_from_folder2
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 5, 2023
1 parent f7dc980 commit b445f0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hello_imgui_cmake/assets/hello_imgui_assets.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ endif()


function(hello_imgui_copy_folder1_files_missing_from_folder2 folder_src_1 folder_src_2 folder_dst)
if (NOT EXISTS ${folder_dst})
file(MAKE_DIRECTORY ${folder_dst})
endif()
hello_imgui_file_glob_recurse_relative(files1 ${folder_src_1})
hello_imgui_file_glob_recurse_relative(files2 ${folder_src_2})

foreach(file1 ${files1})
list(FIND files2 ${file1} index)
if (${index} EQUAL -1)
Expand Down

0 comments on commit b445f0f

Please sign in to comment.