build: Fix error during install in offline builds

This commit is contained in:
WerWolv 2025-08-14 23:57:58 +02:00
parent 0664937c1e
commit ef8f5c67bd
1 changed files with 6 additions and 4 deletions

View File

@ -641,11 +641,13 @@ function(downloadImHexPatternsFiles dest)
endforeach()
]])
else()
if (NOT (imhex_patterns_SOURCE_DIR STREQUAL ""))
set(PATTERNS_FOLDERS_TO_INSTALL constants encodings includes patterns magic nodes)
foreach (FOLDER ${PATTERNS_FOLDERS_TO_INSTALL})
install(DIRECTORY "${imhex_patterns_SOURCE_DIR}/${FOLDER}" DESTINATION "${dest}" PATTERN "**/_schema.json" EXCLUDE)
endforeach ()
endif()
endif ()
endfunction()