[PATCH] D69239: [CMake] Allow overriding MSVC_DIA_SDK_DIR via CMake

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 21 01:07:04 PDT 2019


mstorsjo created this revision.
mstorsjo added reviewers: rnk, thakis, zturner.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.

This eases using it in cross-msvc setups.


Repository:
  rL LLVM

https://reviews.llvm.org/D69239

Files:
  llvm/cmake/config-ix.cmake


Index: llvm/cmake/config-ix.cmake
===================================================================
--- llvm/cmake/config-ix.cmake
+++ llvm/cmake/config-ix.cmake
@@ -474,7 +474,8 @@
   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 STRING
+      "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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69239.225826.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191021/cd5b586c/attachment.bin>


More information about the llvm-commits mailing list