From d561171bddceb3ed89667142e14191d5f9c1ebd0 Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Mon, 2 Jan 2017 20:22:45 +0000 Subject: [PATCH] [cmake] Normalize LLVM_ENABLE_DIA_SDK to fix Windows tests Attempts to fix Windows build breakage caused by r290818. llvm-svn: 290832 --- cmake/config-ix.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index fe3afd3fcc2..530a5ddaab4 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -457,6 +457,13 @@ if( MSVC ) if(LLVM_ENABLE_DIA_SDK AND NOT HAVE_DIA_SDK) message(FATAL_ERROR "DIA SDK not found. If you have both VS 2012 and 2013 installed, you may need to uninstall the former and re-install the latter afterwards.") endif() + + # Normalize to 0/1 for lit.site.cfg + if(LLVM_ENABLE_DIA_SDK) + set(LLVM_ENABLE_DIA_SDK 1) + else() + set(LLVM_ENABLE_DIA_SDK 0) + endif() else() set(LLVM_ENABLE_DIA_SDK 0) endif( MSVC )