<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I don't think it is a change in CMake: it looks like REPLACE has had
the same syntax since at least 3.0:<br>
<pre style="overflow-x: auto; overflow-y: hidden; padding: 5px; background-color: rgb(238, 238, 238); color: rgb(51, 51, 51); line-height: 15.6px; border-top: 1px solid rgb(170, 204, 153); border-bottom: 1px solid rgb(170, 204, 153); border-image: initial; border-left: none; border-right: none; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"><span class="n">string</span><span class="p">(</span><span class="n">REPLACE</span> <span class="o" style="color: rgb(102, 102, 102);"><</span><span class="n">match_string</span><span class="o" style="color: rgb(102, 102, 102);">></span>
<span class="o" style="color: rgb(102, 102, 102);"><</span><span class="n">replace_string</span><span class="o" style="color: rgb(102, 102, 102);">></span> <span class="o" style="color: rgb(102, 102, 102);"><</span><span class="n">output</span> <span class="n">variable</span><span class="o" style="color: rgb(102, 102, 102);">></span>
<span class="o" style="color: rgb(102, 102, 102);"><</span><span class="nb" style="color: rgb(0, 112, 32);">input</span><span class="o" style="color: rgb(102, 102, 102);">></span> <span class="p">[</span><span class="o" style="color: rgb(102, 102, 102);"><</span><span class="nb" style="color: rgb(0, 112, 32);">input</span><span class="o" style="color: rgb(102, 102, 102);">>...</span><span class="p">])</span></pre>
The version of FindCOLLADA.cmake in 3.4.0 didn't have the REPLACE
lines, so I guess that is where the problem lies. The (first)
offending line is:<br>
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME
${CMAKE_VS_PLATFORM_TOOLSET})<br>
Since I am not building with the Collada plugin I assume one or both
of the last 2 arguments are blank, thus too few args. Probably
wrapping them in " would fix it but I haven't had a chance to try
that yet. Maybe best to kick this to the contributor of the revised
FindCOLLADA.cmake.<br>
<br>
Cheers,<br>
Stuart<br>
<div class="moz-signature"><br>
</div>
<div class="moz-cite-prefix">On 5/12/2017 3:56 AM, Robert Osfield
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFN7Y+XgL_+Py823ZUAgYOFq6-qPWkpBgPX-SYeoeu6OKv5TgA@mail.gmail.com">
<pre wrap="">HI Stuart,
On 12 May 2017 at 02:04, Stuart Mentzer <a class="moz-txt-link-rfc2396E" href="mailto:osgforum@tevs.eu"><osgforum@tevs.eu></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Current master build fails on Windows with:
CMake Error at CMakeModules/FindCOLLADA.cmake:37 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
CMakeLists.txt:743 (FIND_PACKAGE)
Details: Windows 10, CMake 3.8.1, Visual C++ 2015
</pre>
</blockquote>
<pre wrap="">
Is this error due to recent changes in the OSG or an issue introduced
by CMake 3.8.1?
Cheers,
Robert.
_______________________________________________
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>