mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 12:19:53 +00:00
[cmake] Normalize LLVM_ENABLE_DIA_SDK to fix Windows tests
Attempts to fix Windows build breakage caused by r290818. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290832 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
03a167d742
commit
12ec8e1ce1
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user