<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=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@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";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@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="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I&#8217;m not really sure if this issue is with Cmake or Mingw.&nbsp; I have a build that uses BLAS, so I have some code to either find BLAS or build it locally:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">find_package(BLAS)<o:p></o:p></p>
<p class="MsoNormal">if(BLAS_FOUND)<o:p></o:p></p>
<p class="MsoNormal">&nbsp; set (EXTRA_LIBS ${EXTRA_LIBS} &quot;${BLAS_LIBRARIES}&quot;) <o:p></o:p></p>
<p class="MsoNormal">else()<o:p></o:p></p>
<p class="MsoNormal">&nbsp; ### Build BLAS ###<o:p></o:p></p>
<p class="MsoNormal">endif()<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">However, on one Windows machine a BLAS library is found at:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">C:\Program Files (x86)\psuade_project\ 1.6.0\bin\libblas.dll<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">However, when I try to build mingw-make can&#8217;t even read the files cmake generated properly.&nbsp; Here&#8217;s the error:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">C:/MinGW/bin/mingw32-make -f CMakeFiles\psuade-bin.dir\build.make CMakeFiles/psuade-bin.dir/build<o:p></o:p></p>
<p class="MsoNormal">mingw32-make[2]: Entering directory `C:/psuade/trunk_clean/build_shared'<o:p></o:p></p>
<p class="MsoNormal">mingw32-make[2]: *** No rule to make target `x86)/psuade_project 1.6.0/bin/libblas.dll)', needed by `bin/psuade.exe'.&nbsp; S<o:p></o:p></p>
<p class="MsoNormal">top.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">You can see that the open paren seems to have screwed up the parsing.&nbsp; The issue is in the build.make file:<o:p></o:p></p>
<p class="MsoNormal">bin/psuade.exe: C:/Program Files\ (x86)/psuade_project/\ 1.6.0/bin/libblas.dll<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I&#8217;ve tried a variety of escape characters to get this line to work with no luck.&nbsp; I tried:<o:p></o:p></p>
<p class="MsoNormal">bin/psuade.exe: &#8220;C:/Program Files\ (x86)/psuade_project/\ 1.6.0/bin/libblas.dll&#8221;<o:p></o:p></p>
<p class="MsoNormal">bin/psuade.exe: C:/Program Files\ \(x86)/psuade_project/\ 1.6.0/bin/libblas.dll<o:p></o:p></p>
<p class="MsoNormal">bin/psuade.exe: &#8220;C:/Program Files\ \(x86)/psuade_project/\ 1.6.0/bin/libblas.dll&#8221;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I get different errors with each one.&nbsp; <o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Is this a bug, is there something else I should do?&nbsp; For now I&#8217;m just going force it to build BLAS locally on windows.&nbsp; But It seems like I should have a more general solution.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Jim<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>