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.
cmake/Tests/RunCMake/target_link_options/genex_DEVICE_LINK-validatio...

23 lines
578 B

if (NOT DEFINED DEVICE_LINK)
set (DEVICE_LINK FALSE)
endif()
if (DEVICE_LINK)
set (VALID_ID DEVICE_LINK)
set (INVALID_ID NORMAL_LINK)
else()
set (VALID_ID NORMAL_LINK)
set (INVALID_ID DEVICE_LINK)
endif()
if (NOT actual_stdout MATCHES "BADFLAG_${VALID_ID}")
set (RunCMake_TEST_FAILED "Not found expected 'BADFLAG_${VALID_ID}'.")
endif()
if (actual_stdout MATCHES "BADFLAG_${INVALID_ID}")
if (RunCMake_TEST_FAILED)
string (APPEND RunCMake_TEST_FAILED "\n")
endif()
string (APPEND RunCMake_TEST_FAILED "Found unexpected 'BADFLAG_${INVALID_ID}'.")
endif()