File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -281,23 +281,13 @@ function(can_determine_if_cmd)
281281 is_command(my_function b)
282282 assert_truthy(b MESSAGE "b should be a command (function)" )
283283
284- # Not sure if this even can be tested...
285- # add_custom_command(TARGET my_command
286- # PRE_BUILD
287- # COMMAND ${CMAKE_COMMAND} -E echo hello
288- # COMMENT "FOR TESTING PURPOSES ONLY"
289- # VERBATIM
290- # )
291- # is_command(my_command c)
292- # assert_truthy(c MESSAGE "c should be a command (custom command)")
293-
294284 set (my_var "" )
295- is_command(my_var d )
296- assert_falsy(d MESSAGE "d should NOT be a command" )
285+ is_command(my_var c )
286+ assert_falsy(c MESSAGE "c should NOT be a command" )
297287
298288 set (fn_ref "my_function" )
299- is_command(fn_ref e )
300- assert_truthy(e MESSAGE "e should be a command (reference)" )
289+ is_command(fn_ref d )
290+ assert_truthy(d MESSAGE "d should be a command (reference)" )
301291
302292endfunction ()
303293
You can’t perform that action at this time.
0 commit comments