<div dir="ltr"><div><span style="font-size:12.8px">You are missing the ending 0s.</span></div><div><span style="font-size:12.8px">By the way the MSVCXX vars are discouraged (there is no var defined starting from Visual 2017), MSVC_VERSION is the recommended way now : <a href="https://cmake.org/cmake/help/v3.8/variable/MSVC14.html?highlight=msvc14">https://cmake.org/cmake/help/v3.8/variable/MSVC14.html?highlight=msvc14</a></span></div><span style="font-size:12.8px"><div><span style="font-size:12.8px"><br></span></div>IF(APPLE)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "mac")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ELSEIF(MINGW)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "mingw")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ELSEIF(MSVC_VERSION EQUAL 1900 OR </span><span style="font-size:12.8px">MSVC_VERSION EQUAL 1910 </span><span style="font-size:12.8px">)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "vc140")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ELSEIF(</span><span style="font-size:12.8px">MSVC_VERSION EQUAL 1800</span><span style="font-size:12.8px">)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "vc120")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ELSEIF(</span><span style="font-size:12.8px">MSVC_VERSION EQUAL 1700</span><span style="font-size:12.8px">)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "vc110")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ELSEIF(</span><span style="font-size:12.8px">MSVC_VERSION EQUAL 1600</span><span style="font-size:12.8px">)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "vc100")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ELSEIF(</span><span style="font-size:12.8px">MSVC_VERSION EQUAL 1500</span><span style="font-size:12.8px">)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "vc90")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ELSEIF(</span><span style="font-size:12.8px">MSVC_VERSION EQUAL 1400</span><span style="font-size:12.8px">)</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "vc80")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ELSE()</span><br style="font-size:12.8px"><span style="font-size:12.8px"> SET(COLLADA_BUILDNAME "linux")</span><br style="font-size:12.8px"><span style="font-size:12.8px">ENDIF()</span><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 15, 2017 at 2:50 PM, Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">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"><span class="">On 15 May 2017 at 13:08, Robert Osfield <<a href="mailto:robert.osfield@gmail.com">robert.osfield@gmail.com</a>> wrote:<br>
> Looks like we'll need to rewrite this problem block for the case when<br>
> CMAKE_VS_PLATFORM_TOOLSET is not set.<br>
><br>
> Don't yet know what this might be though...<br>
<br>
</span>Would the following approach work better?<br>
<br>
-- Modified CMakeModues/FindCOLLADA.camke script :<br>
<br>
IF(APPLE)<br>
SET(COLLADA_BUILDNAME "mac")<br>
ELSEIF(MINGW)<br>
SET(COLLADA_BUILDNAME "mingw")<br>
ELSEIF(MSVC14)<br>
SET(COLLADA_BUILDNAME "vc14")<br>
ELSEIF(MSVC12)<br>
SET(COLLADA_BUILDNAME "vc12")<br>
ELSEIF(MSVC11)<br>
SET(COLLADA_BUILDNAME "vc11")<br>
ELSEIF(MSVC10)<br>
SET(COLLADA_BUILDNAME "vc10")<br>
ELSEIF(MSVC90)<br>
SET(COLLADA_BUILDNAME "vc9")<br>
ELSEIF(MSVC80)<br>
SET(COLLADA_BUILDNAME "vc8")<br>
ELSE()<br>
SET(COLLADA_BUILDNAME "linux")<br>
ENDIF()<br>
<br>
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BOOST_BUILDNAME})<br>
<br>
IF(${CMAKE_VS_PLATFORM_<wbr>TOOLSET})<br>
<span class=""> string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME<br>
${CMAKE_VS_PLATFORM_TOOLSET})<br>
</span>ENDIF()<br>
<br>
--<br>
<br>
I've moved the string(REPLACE...) lines into a single block wrapped in a check.<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">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</div></div></blockquote></div><br></div>