Skip to content

Commit

Permalink
Add OVERRIDE_DKSDK_VERSION option (3/n)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonah Beckford committed Nov 11, 2024
1 parent 966001d commit a60cdc3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cmake/scripts/dksdk/project/get.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function(run)
include(${CMAKE_CURRENT_FUNCTION_LIST_FILE})

set(noValues HELP QUIET NONINTERACTIVE SANDBOX ONLY_DKSDK_VERSION)
set(singleValues FETCH_DIR SOURCE_DIR DKSDK_CMAKE_GITREF)
set(singleValues FETCH_DIR SOURCE_DIR DKSDK_CMAKE_GITREF OVERRIDE_DKSDK_VERSION)
set(multiValues)
cmake_parse_arguments(PARSE_ARGV 0 ARG "${noValues}" "${singleValues}" "${multiValues}")

Expand Down Expand Up @@ -262,6 +262,12 @@ function(run)
set(expand_ONLY_DKSDK_VERSION ONLY_DKSDK_VERSION)
endif()

# OVERRIDE_DKSDK_VERSION
set(expand_OVERRIDE_DKSDK_VERSION)
if(ARG_OVERRIDE_DKSDK_VERSION)
set(expand_OVERRIDE_DKSDK_VERSION OVERRIDE_DKSDK_VERSION "${ARG_OVERRIDE_DKSDK_VERSION}")
endif()

# configFile
set(configFile dkproject.jsonc)
cmake_path(ABSOLUTE_PATH configFile BASE_DIRECTORY "${CMAKE_SOURCE_DIR}" NORMALIZE
Expand All @@ -274,6 +280,7 @@ function(run)
${expand_SOURCE_DIR}
${expand_SANDBOX}
${expand_ONLY_DKSDK_VERSION}
${expand_OVERRIDE_DKSDK_VERSION}
${expand_DKSDK_CMAKE_GITREF})
message(STATUS "Project dependencies have been updated.")
endfunction()

0 comments on commit a60cdc3

Please sign in to comment.