优化
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user