[llvm] e659fff - [CMake] Allow overriding MSVC_DIA_SDK_DIR via CMake

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 23:35:11 PDT 2019


Author: Martin Storsjo
Date: 2019-10-22T06:36:21Z
New Revision: e659fff2fb7203ae949f32b5e50d030738c33f5e

URL: https://github.com/llvm/llvm-project/commit/e659fff2fb7203ae949f32b5e50d030738c33f5e
DIFF: https://github.com/llvm/llvm-project/commit/e659fff2fb7203ae949f32b5e50d030738c33f5e.diff

LOG: [CMake] Allow overriding MSVC_DIA_SDK_DIR via CMake

This eases using it in cross-msvc setups.

Differential Revision: https://reviews.llvm.org/D69239

llvm-svn: 375485

Added: 
    

Modified: 
    llvm/cmake/config-ix.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 4c585b8fd5a2..028a2cc86bf3 100644
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -474,7 +474,8 @@ if( MSVC )
   set(strdup "_strdup")
 
   # See if the DIA SDK is available and usable.
-  set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK")
+  set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK" CACHE PATH
+      "Path to the DIA SDK")
 
   # Due to a bug in MSVC 2013's installation software, it is possible
   # for MSVC 2013 to write the DIA SDK into the Visual Studio 2012


        


More information about the llvm-commits mailing list