]> granicus.if.org Git - clang/commitdiff
[cmake] Follow-up to rL320494.
authorDon Hinton <hintonda@gmail.com>
Tue, 12 Dec 2017 19:47:40 +0000 (19:47 +0000)
committerDon Hinton <hintonda@gmail.com>
Tue, 12 Dec 2017 19:47:40 +0000 (19:47 +0000)
EXISTS requires full paths.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320519 91177308-0d34-0410-b5e6-96231b3b80d8

test/CMakeLists.txt

index 327226fe6086867293c9b7f0bd209b3ff680c8a2..4b0e94b666b44e50f6837896e5638369043bc3ae 100644 (file)
@@ -134,9 +134,9 @@ set_target_properties(clang-test PROPERTIES FOLDER "Clang tests")
 
 # FIXME: This logic can be removed once all buildbots have moved
 # debuginfo-test from clang/test to llvm/projects or monorepo.
-if(EXISTS debuginfo-tests)
+if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/debuginfo-tests)
   message(WARNING "Including debuginfo-tests in clang/test is deprecated.  Move to llvm/projects or use monorepo.")
-  if(EXISTS debuginfo-tests/CMakeLists.txt)
+  if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/debuginfo-tests/CMakeLists.txt)
     add_subdirectory(debuginfo-tests)
   endif()
 endif()