llvm-project/clang/cmake/modules
Shoaib Meenai 19c45546fc [cmake] Reset variable before using it
A bunch of macros use the same variable name, and since CMake macros
don't get their own scope, the value persists across macro invocations,
and we can end up exporting targets which shouldn't be exported. Clear
the variable before each use to avoid this.

Converting these macros to functions would also help, since it would
avoid the variable leaking into its parent scope, and that's something I
plan to follow up with. It won't fully address the problem, however,
since functions still inherit variables from their parent scopes, so if
someone in the parent scope just happened to use the same variable name
we'd still have the same issue.

llvm-svn: 357036
2019-03-26 22:16:53 +00:00
..
AddClang.cmake [cmake] Reset variable before using it 2019-03-26 22:16:53 +00:00
CMakeLists.txt [clang] Add CMake target for installing clang's CMake exports 2019-02-20 23:16:15 +00:00
ClangConfig.cmake.in [CMake] NFC. Add clang-tablegen-targets utility target 2017-07-28 15:33:47 +00:00
FindZ3.cmake Moved everything SMT-related to LLVM and updated the cmake scripts. 2019-03-25 17:47:45 +00:00
ProtobufMutator.cmake [clang-fuzzer] Fix incremental builds of the fuzzer 2017-10-31 20:49:57 +00:00