Skip to content

Commit

Permalink
Combine cmake_parse_arguments
Browse files Browse the repository at this point in the history
Signed-off-by: Larsen, Steffen <[email protected]>
  • Loading branch information
steffenlarsen committed Sep 4, 2023
1 parent 6d7d486 commit 5650a0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmake/AddCTSOption.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ set(SYCL_CTS_DETAIL_OPTION_COMPILE_DEFINITIONS "")
# - FORCE_ON <value> If <value> is ON the option will be overwritten as ON.
#
function(add_cts_option option_name option_description option_default)
cmake_parse_arguments(PARSE_ARGV 3 args "" "WARN_IF_OFF" "")
cmake_parse_arguments(PARSE_ARGV 3 args "" "FORCE_ON" "")
cmake_parse_arguments(PARSE_ARGV 3 args "" "WARN_IF_OFF;FORCE_ON" "")

option(${option_name} ${option_description} ${option_default})
list(APPEND SYCL_CTS_DETAIL_AVAILABLE_OPTIONS ${option_name})
Expand Down

0 comments on commit 5650a0a

Please sign in to comment.