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

View File

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