<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Robert (and Mourad),<br>
    <br>
    I tried -T v140 but I still didn't seem to get that variable set,
    with or without the -G option. And note that I use MinGW makefiles
    even when building with MSVC so deducing partially from -G won't
    work right in that case anyway.<br>
    <br>
    From this page
(<a class="moz-txt-link-freetext" href="https://cmake.org/cmake/help/latest/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.html">https://cmake.org/cmake/help/latest/variable/CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION.html</a>)
    it looks like Windows 10 may do things a little differently (I'm on
    Win10).<br>
    <br>
    I guess the discussion from
    <a class="moz-txt-link-freetext" href="http://forum.openscenegraph.org/viewtopic.php?t=16592">http://forum.openscenegraph.org/viewtopic.php?t=16592</a> may not be
    fully resolved yet.<br>
    <br>
    Cheers,<br>
    Stuart<br>
    <div class="moz-signature">--<br>
      Stuart Mentzer<br>
      Objexx Engineering<br>
      <em>Office</em>  +1 781 455 1150 x11<br>
      <em>Mobile</em> +1 781 708 3872<br>
      <br>
    </div>
    <div class="moz-cite-prefix">On 5/15/2017 7:58 AM, Mourad
      Boufarguine wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMK=q_zuVy_FUw+dWasiAVGDtkd244=bUs3KdpsKDAhtpJFThw@mail.gmail.com">
      <div dir="ltr">Hi Robert,
        <div><br>
        </div>
        <div><span style="font-size:12.8px">CMAKE_VS_PLATFORM_TOOLSET is
            not set unless the user explicitely specifies a toolset when
            invoking cmake :</span><br>
        </div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">cmake -G "Visual Studio XX"
            -T v1YY srcDir</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">If the user does not
            specify a toolset, the default toolset of the chosen Visual
            Studio version will be used, but
            the CMAKE_VS_PLATFORM_TOOLSET variable will not be set, and
            this is what is causing the problem here.</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px">Cheers,</span></div>
        <div><span style="font-size:12.8px">Mourad</span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
        <div><span style="font-size:12.8px"><br>
          </span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, May 15, 2017 at 1:23 PM, Robert
          Osfield <span dir="ltr"><<a
              href="mailto:robert.osfield@gmail.com" target="_blank"
              moz-do-not-send="true">robert.osfield@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Stuart,<br>
            <span class=""><br>
              On 15 May 2017 at 12:07, Stuart Mentzer <<a
                href="mailto:Stuart_Mentzer@objexx.com"
                moz-do-not-send="true">Stuart_Mentzer@objexx.com</a>>
              wrote:<br>
              > <a
href="https://cmake.org/cmake/help/v3.0/variable/CMAKE_VS_PLATFORM_TOOLSET.html"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://cmake.org/cmake/help/<wbr>v3.0/variable/CMAKE_VS_<wbr>PLATFORM_TOOLSET.html</a><br>
              ><br>
              > Which mentons that it's set for VC10 and above. 
              Torben uses the<br>
              > CMAKE_VS_PLATFORM_TOOLSET for vc8 and vc9 above, so
              I'm not what would<br>
              > happen here.<br>
              ><br>
              > What VC number is reported on your system?<br>
              ><br>
              > Visual C++ 2015 corresponds to MSVC14.<br>
              <br>
            </span>Looking at the CMake docs it would seem
            CMAKE_VS_PLATFORM_TOOLSET<br>
            should be defined, but given your error it would seem on
            your system<br>
            it's not.<br>
            <br>
            Could you check whether CMAKE_VS_PLATFORM_TOOLSET is defined
            and what<br>
            it's value is?<br>
            <span class=""><br>
              <br>
              > [Separate issue: curl 7.54.0 (latest) has a build
              error under VC++ 2015 but<br>
              > the prev version builds OK]<br>
              ><br>
              > Is this a build error in curl, or the OSG plugin
              building against curl<br>
              > 7.54.0?<br>
              ><br>
              > It is in the curl build itself. Here is the bug
              report I filed:<br>
              > <a href="https://github.com/curl/curl/issues/1482"
                rel="noreferrer" target="_blank" moz-do-not-send="true">https://github.com/curl/curl/<wbr>issues/1482</a><br>
              <br>
            </span>OK, this isn't an OSG issue then so I can safely
            leave this to someone<br>
            else to resolve:-)<br>
            <div class="HOEnZb">
              <div class="h5"><br>
                Robert.<br>
                ______________________________<wbr>_________________<br>
                osg-users mailing list<br>
                <a href="mailto:osg-users@lists.openscenegraph.org"
                  moz-do-not-send="true">osg-users@lists.<wbr>openscenegraph.org</a><br>
                <a
href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org"
                  rel="noreferrer" target="_blank"
                  moz-do-not-send="true">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
osg-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.openscenegraph.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org">http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>