You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
251 B

cmake_policy(SET CMP0140 NEW)
function(FUNC)
set(VAR "set")
return(PROPAGATE VAR)
endfunction()
set(VAR "initial")
func()
if (NOT DEFINED VAR OR NOT VAR STREQUAL "set")
message(FATAL_ERROR "return(PROPAGATE) not handled correctly.")
endif()