[compiler-rt] r265613 - Another place for CMAKE_HOST_UNIX
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 6 16:18:11 PDT 2016
Author: silvas
Date: Wed Apr 6 18:18:09 2016
New Revision: 265613
URL: http://llvm.org/viewvc/llvm-project?rev=265613&view=rev
Log:
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.
Modified:
compiler-rt/trunk/test/CMakeLists.txt
Modified: compiler-rt/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/CMakeLists.txt?rev=265613&r1=265612&r2=265613&view=diff
==============================================================================
--- compiler-rt/trunk/test/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/CMakeLists.txt Wed Apr 6 18:18:09 2016
@@ -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()
More information about the llvm-commits
mailing list