CMake: Build utils/KillTheDoctor only on MSVC for now.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 26 Oct 2010 05:08:27 +0000 (05:08 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 26 Oct 2010 05:08:27 +0000 (05:08 +0000)
Mingw does not have the header <dbghelp.h>.
Thanks to Daniel Newton, testing it on mingw.

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

CMakeLists.txt

index 4c182ff3859ba566089637518de874ceabccb9fa..c2a9430c9a8adf6d7c716037483d417cf516b069 100644 (file)
@@ -392,7 +392,7 @@ if( LLVM_INCLUDE_TESTS )
   add_subdirectory(test)
   add_subdirectory(utils/unittest)
   add_subdirectory(unittests)
-  if (WIN32)
+  if (MSVC)
     # This utility is used to prevent chrashing tests from calling Dr. Watson on
     # Windows.
     add_subdirectory(utils/KillTheDoctor)