Skip to content

Commit

Permalink
DONT MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
threeal committed Oct 21, 2024
1 parent 5655c9b commit 12dd35c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/Assertion.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ set(ASSERTION_VERSION 2.0.0)
# should be in the format `<name>=<value>`, where `<name>` is the variable name
# and `<value>` is its value. If `DEFINITIONS` is specified, additional
# variables will also be defined.
function(add_cmake_script_test FILE)
function(add_cmake_script_test)
if(DEFINED CMAKE_SCRIPT_MODE_FILE)
message(SEND_ERROR "Unable to add a new test in script mode")
return()
endif()

cmake_parse_arguments(PARSE_ARGV 1 ARG "" NAME DEFINITIONS)
cmake_parse_arguments(PARSE_ARGV 1 ARG "" "FILE;NAME" DEFINITIONS)
if(NOT DEFINED ARG_NAME)
set(ARG_NAME "${FILE}")
endif()
Expand Down

0 comments on commit 12dd35c

Please sign in to comment.