Skip to content
  • Brad King's avatar
    if: Document that macro arguments are not variables (#13393) · 674c56c3
    Brad King authored
    A common mistake is to write
    
     macro(foo arg)
       if(arg)
       endif()
     endmacro()
    
    and expect if() to treat "arg" as a variable.  The documentation of the
    macro() command already states that arguments are not variables, but
    users writing the if() command may not look at the macro() docs.
    Add a note to the if() documentation.
    674c56c3