[PATCH] D81762: [CMake] Fix incorrect handling of get_target_property failure
Christopher Tetreault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 29 14:46:47 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG657ac8e717e3: [CMake] Fix incorrect handling of get_target_property failure (authored by ctetreau).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81762/new/
https://reviews.llvm.org/D81762
Files:
llvm/cmake/modules/AddLLVM.cmake
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -1428,7 +1428,7 @@
add_dependencies(${test_suite} ${test_name})
get_target_property(test_suite_folder ${test_suite} FOLDER)
- if (NOT ${test_suite_folder} STREQUAL "NOTFOUND")
+ if (test_suite_folder)
set_property(TARGET ${test_name} PROPERTY FOLDER "${test_suite_folder}")
endif ()
endfunction()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81762.274245.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200629/7e2e402c/attachment-0001.bin>
More information about the llvm-commits
mailing list