diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-04-06 23:18:09 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-04-06 23:18:09 +0000 |
commit | 3dd65355186513832d7ab604421e16bdcce9350c (patch) | |
tree | 42f493a08438808a99cc20fb5730836e8a876447 /test/CMakeLists.txt | |
parent | abe3f124417221770eb540cd277ce2415af9f96d (diff) |
Another place for CMAKE_HOST_UNIX
If we don't create the target, don't try to add it as a dependency.
After r265595, we were only creating the SanitizerLintCheck when
`CMAKE_HOST_UNIX` was true.
CMake was emitting a warning:
The dependency target "SanitizerLintCheck" of target "check-ubsan" does not
exist.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@265613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index f986ec151..18984e525 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -31,7 +31,7 @@ if(NOT ANDROID) list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS KillTheDoctor) endif() endif() - if(UNIX) + if(CMAKE_HOST_UNIX) list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS SanitizerLintCheck) endif() endif() |