diff options
Diffstat (limited to 'cmake/config-ix.cmake')
-rwxr-xr-x | cmake/config-ix.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index fe3afd3fcc26..530a5ddaab4d 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 ) |