mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
[cmake] Normalize LLVM_ENABLE_DIA_SDK to fix Windows tests
Attempts to fix Windows build breakage caused by r290818. llvm-svn: 290832
This commit is contained in:
parent
bc73a33e62
commit
d561171bdd
@ -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