[compiler-rt] r222234 - [asan] Fix CMake CMP0046 warning in standalone build.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Nov 18 06:04:13 PST 2014
Author: eugenis
Date: Tue Nov 18 08:04:12 2014
New Revision: 222234
URL: http://llvm.org/viewvc/llvm-project?rev=222234&view=rev
Log:
[asan] Fix CMake CMP0046 warning in standalone build.
Make FileCheck an "imported dependency" in standalone build.
Modified:
compiler-rt/trunk/test/asan/CMakeLists.txt
Modified: compiler-rt/trunk/test/asan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/CMakeLists.txt?rev=222234&r1=222233&r2=222234&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/asan/CMakeLists.txt Tue Nov 18 08:04:12 2014
@@ -138,7 +138,9 @@ endif()
set(ASAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
if(COMPILER_RT_STANDALONE_BUILD)
- list(APPEND ASAN_TEST_DEPS ${LLVM_TOOLS_BINARY_DIR}/FileCheck)
+ add_executable(FileCheck IMPORTED GLOBAL)
+ set_property(TARGET FileCheck PROPERTY IMPORTED_LOCATION ${LLVM_TOOLS_BINARY_DIR}/FileCheck)
+ list(APPEND ASAN_TEST_DEPS FileCheck)
else()
list(APPEND ASAN_TEST_DEPS asan)
endif()
More information about the llvm-commits
mailing list