Use configure_file to set QTK_RESOURCES

This commit is contained in:
2022-08-14 18:17:05 -04:00
parent 44d9092306
commit 86b3f78368
6 changed files with 60 additions and 106 deletions

View File

@@ -15,10 +15,9 @@ function(submodule_update _PATH)
endif()
if (NOT GIT_FOUND)
message(FATAL_ERROR "Error: No git executable found")
message(FATAL_ERROR "[Qtk] Error: No git executable found")
endif()
message(STATUS "${_PATH}")
execute_process(
COMMAND ${GIT_EXECUTABLE} submodule update --init "${_PATH}"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
@@ -26,6 +25,6 @@ function(submodule_update _PATH)
)
if (NOT result EQUAL 0)
message(FATAL_ERROR "Error: Unable to update git submodule at ${_PATH}")
message(FATAL_ERROR "[Qtk] Error: Unable to update git submodule at ${_PATH}")
endif()
endfunction()