[osg-users] Call for testing, preparing for 3.5.6 dev release again :-)

Stuart Mentzer Stuart_Mentzer at objexx.com
Fri May 12 01:18:35 PDT 2017

I don't think it is a change in CMake: it looks like REPLACE has had the same syntax since at least 3.0:

string(REPLACE  <match_string>
        <replace_string>  <output  variable>
        <input>  [<input>...])

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:
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.


On 5/12/2017 3:56 AM, Robert Osfield wrote:
> HI Stuart,
> On 12 May 2017 at 02:04, Stuart Mentzer <osgforum at tevs.eu> wrote:
>> 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
> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170512/ee818956/attachment-0002.htm>

More information about the osg-users mailing list