[CMake] Fix incorrect handling of get_target_property failure
authorChristopher Tetreault <ctetreau@quicinc.com>
Mon, 29 Jun 2020 21:21:39 +0000 (14:21 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Mon, 29 Jun 2020 21:44:14 +0000 (14:44 -0700)
commit657ac8e717e3cbb121e424c0cb6e2cffdacfd533
treecf29533d4d8d225996515eece2208c85f5e7c464
parent4d1b7e9820ee9c87541619ce4dd41e92dc43cd9c
[CMake] Fix incorrect handling of get_target_property failure

Summary:
add_unittest was checking that the result of get_target_property was not
"NOTFOUND", but despite what the documentation says, get_target_property
returns <the var>-NOTFOUND on failure.

Reviewers: efriedma, thakis, serge-sans-paille, chandlerc

Reviewed By: serge-sans-paille

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81762
llvm/cmake/modules/AddLLVM.cmake