<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Abel,<br>
    </p>
    <blockquote type="cite"
cite="mid:AS8PR07MB8168A026E5761EEC60F6D774A2FCA@AS8PR07MB8168.eurprd07.prod.outlook.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style>@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;}@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",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;}p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}span.EstiloCorreo18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}span.EstiloCorreo19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}span.EstiloCorreo20
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}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]-->
      <div class="WordSection1"><br>
        <p class="MsoNormal" style="text-autospace:none"><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">In Cmakefile.txt of the project I’ve configured
            this (below
          </span><span
            style="font-size:9.5pt;font-family:Consolas;color:green">#
            Developer may want to specify some variable to find proper
            version.</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US">)</span><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"
            lang="EN-US">:</span><span
            style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;color:blue">set</span><span
            style="font-size:9.5pt;font-family:Consolas;color:black">(EXPAT_INCLUDE_DIR
          </span><span
            style="font-size:9.5pt;font-family:Consolas;color:#A31515">"D:/GitHub-repository/libexpat/expat/lib"</span><span
            style="font-size:9.5pt;font-family:Consolas;color:black">)<o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;color:blue">set</span><span
            style="font-size:9.5pt;font-family:Consolas;color:black">(EXPAT_LIBRARY
          </span><span
            style="font-size:9.5pt;font-family:Consolas;color:#A31515">"D:/GitHub-repository/libexpat/expat/build/Debug/libexpatd.lib"</span><span
            style="font-size:9.5pt;font-family:Consolas;color:black">)</span></p>
      </div>
    </blockquote>
    Is this .lib a static library, or an import library of the .dll ? My
    assumption (I may be wrong) is that it is an import lib of the .dll.
    In which case you must not set EXPAT_USE_STATIC_LIBS<br>
    <blockquote type="cite"
cite="mid:AS8PR07MB8168A026E5761EEC60F6D774A2FCA@AS8PR07MB8168.eurprd07.prod.outlook.com">
      <div class="WordSection1">
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-size:9.5pt;font-family:Consolas;color:blue">set</span><span
            style="font-size:9.5pt;font-family:Consolas;color:black">(EXPAT_LIBRARY
          </span><span
            style="font-size:9.5pt;font-family:Consolas;color:#A31515">"D:/GitHub-repository/libexpat/expat/build/Debug/libexpatd.dll"</span><span
            style="font-size:9.5pt;font-family:Consolas;color:black">)</span></p>
      </div>
    </blockquote>
    <p>That won't work. This needs to be a .lib</p>
    <p>You'd better run cmake again on expat with a
      -DCMAKE_INSTALL_PREFIX=d:/install-prefix   and run "cmake --build
      . --target install", and then when building GDAL, use "cmake ..
      -DCMAKE_PREFIX_PATH=d:/install-prefix", so it automatically
      configures things from what is found in d:/install-prefix</p>
    <p>You could also potentially use vcpkg or conda to install GDAL
      dependencies instead of building them from scratch:
      <a class="moz-txt-link-freetext" href="https://gdal.org/download.html">https://gdal.org/download.html</a><br>
    </p>
    <p>Even</p>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>