<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";
        mso-fareast-language:RU;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="RU" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US"><Sorry, if my reply looks off, as I’ve just subscribed and wanted to reply to the message from the archive:
</span><a href="https://cmake.org/pipermail/cmake/2019-April/069362.html"><span lang="EN-US">https://cmake.org/pipermail/cmake/2019-April/069362.html</span></a>
<span lang="EN-US">><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can this still be considered something what CMake can handle the right way, please?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">cmake_install.cmake is supposed to be executed by CMake, so why would CMake use builder-specific representation of variables inside cmake_install.cmake?  I understand that the user explicitly requested this by using CMAKE_CFG_INTDIR
 in the install() command, but isn’t it easy to handle CMAKE_CFG_INTDIR usage inside files generated for CMake processing like cmake_install.cmake?  If $(Configuration) is replaced with ${BUILD_TYPE} it would work.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I see that BUILD_TYPE is already passed to the cmake command for processing cmake_install.cmake, so I wonder if it is easy to do one step forward and resolve this issue in CMake.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you for considering this option.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Slava<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<pre><span lang="EN-US" style="color:black">You're probably running into </span><span style="color:black"><a href="https://reviews.llvm.org/D58537#inline-532492."><span lang="EN-US">https://reviews.llvm.org/D58537#inline-532492.</span></a></span><span lang="EN-US" style="color:black"> This is an LLVM issue, not a CMake issue.<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="color:black">From: CMake <</span><span style="color:black"><a href="https://cmake.org/mailman/listinfo/cmake"><span lang="EN-US">cmake-bounces at cmake.org</span></a></span><span lang="EN-US" style="color:black">> on behalf of Osman Zakir <</span><span style="color:black"><a href="https://cmake.org/mailman/listinfo/cmake"><span lang="EN-US">osmanzakir90 at hotmail.com</span></a></span><span lang="EN-US" style="color:black">><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">Date: Monday, April 22, 2019 at 6:45 AM<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">To: "</span><span style="color:black"><a href="https://cmake.org/mailman/listinfo/cmake"><span lang="EN-US">cmake at cmake.org</span></a></span><span lang="EN-US" style="color:black">" <</span><span style="color:black"><a href="https://cmake.org/mailman/listinfo/cmake"><span lang="EN-US">cmake at cmake.org</span></a></span><span lang="EN-US" style="color:black">><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">Subject: [CMake] Need help with CMake error "CMake Error at tools/clang/lib/Headers/cmake_install.cmake:36 file INSTALL cannot find "C:/llvm-project/build/$(Configuration)/lib/clang/9.0.0/include"."<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="color:black">As the title says, I have this error when trying to build INSTALL.vcxproj in LLVM.sln using Visual Studio Community 2019:<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>CMake Error at tools/clang/lib/Headers/cmake_install.cmake:36 (file):<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>  file INSTALL cannot find</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>  "C:/llvm-project/build/$(Configuration)/lib/clang/9.0.0/include".</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>Call Stack (most recent call first):</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>  tools/clang/lib/cmake_install.cmake:37 (include)</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>  tools/clang/cmake_install.cmake:54 (include)</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>  tools/cmake_install.cmake:43 (include)</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>  cmake_install.cmake:64 (include)</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522></span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522></span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: The command "setlocal</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: :cmEnd</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: :cmErrorLevel</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: exit /b %1</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: :cmDone</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(138,5): error MSB3073: :VCEnd" exited with code 1.</span><span lang="EN-US" style="font-family:"Cambria Math",serif;color:black">​</span><span lang="EN-US" style="color:black"><o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">522>Done building project "INSTALL.vcxproj" -- FAILED.<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black">"<o:p></o:p></span></pre>
<pre><span lang="EN-US" style="color:black"><o:p> </o:p></span></pre>
<pre><span lang="EN-US" style="color:black">Everything else was built successfully, it's just this one project that it can't build.  I checked in the file path it mentioned and I can see the "include" folder in there.  So there's probably something I need to change in cmake_install.cmake.  I've attached the file to this message.  I hope someone will help me change it such that this will work.  </span><span style="color:black">Thanks in advance.<o:p></o:p></span></pre>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>