This commit is contained in:
2026-08-08 22:39:18 +08:00
parent d2cda83810
commit 1354aa54ba
7 changed files with 37 additions and 0 deletions
+5
View File
@@ -20,6 +20,11 @@ execute_process(COMMAND ${install_command} RESULT_VARIABLE install_result)
if(NOT install_result EQUAL 0)
message(FATAL_ERROR "Failed to install Structive")
endif()
foreach(path IN ITEMS "${prefix}/share/Structive/RELEASE.md" "${prefix}/share/Structive/THIRD_PARTY_NOTICES.md")
if(NOT EXISTS "${path}")
message(FATAL_ERROR "Structive install is missing release metadata: ${path}")
endif()
endforeach()
set(configure_command "${CMAKE_COMMAND}" -S "${STRUCTIVE_SOURCE_DIR}/install_consumer" -B "${consumer_binary}" "-DCMAKE_PREFIX_PATH=${prefix}")
if(DEFINED STRUCTIVE_GENERATOR AND NOT STRUCTIVE_GENERATOR STREQUAL "")
list(APPEND configure_command -G "${STRUCTIVE_GENERATOR}")