Skip to content

Commit

Permalink
bugfix: ONLY_DKSDK_VERSION was not being used
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahbeckford committed Oct 26, 2024
1 parent 5402502 commit 7461acf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmake/scripts/dksdk/project/get.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function(run)
# Get helper functions from this file
include(${CMAKE_CURRENT_FUNCTION_LIST_FILE})

set(noValues HELP QUIET NONINTERACTIVE SANDBOX)
set(noValues HELP QUIET NONINTERACTIVE SANDBOX ONLY_DKSDK_VERSION)
set(singleValues FETCH_DIR SOURCE_DIR)
set(multiValues)
cmake_parse_arguments(PARSE_ARGV 0 ARG "${noValues}" "${singleValues}" "${multiValues}")
Expand Down Expand Up @@ -240,6 +240,12 @@ function(run)
set(expand_SANDBOX SANDBOX)
endif()

# ONLY_DKSDK_VERSION
set(expand_ONLY_DKSDK_VERSION)
if(ARG_ONLY_DKSDK_VERSION)
set(expand_ONLY_DKSDK_VERSION ONLY_DKSDK_VERSION)
endif()

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

0 comments on commit 7461acf

Please sign in to comment.