2012-10-08 21:31:59 +04:00
|
|
|
get_property(FOO_BRIEF GLOBAL PROPERTY FOO BRIEF_DOCS)
|
|
|
|
get_property(FOO_FULL GLOBAL PROPERTY FOO FULL_DOCS)
|
|
|
|
|
|
|
|
if (NOT FOO_BRIEF STREQUAL "NOTFOUND")
|
|
|
|
message(SEND_ERROR "property FOO has BRIEF_DOCS set to '${FOO_BRIEF}'")
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (NOT FOO_FULL STREQUAL "NOTFOUND")
|
|
|
|
message(SEND_ERROR "property FOO has FULL_DOCS set to '${FOO_FULL}'")
|
|
|
|
endif ()
|
|
|
|
|
2012-10-03 19:09:09 +04:00
|
|
|
set(test_var alpha)
|
|
|
|
get_property(result VARIABLE PROPERTY test_var)
|
|
|
|
if(NOT result STREQUAL "alpha")
|
|
|
|
message(SEND_ERROR "bad value of VARIABLE PROPERTY test_var: got '${result}' instead of 'alpha'")
|
|
|
|
endif()
|