Hi Robert,

I think it is more correct to use the same logic (testing against the
compiler version CMAKE_CXX_COMPILER_VERSION  ) as in the mainstream
FindBoost.cmake :
https://github.com/Kitware/CMake/blob/master/Modules/FindBoost.cmake#L432-L453


Cheers,
Mourad

On Mon, May 15, 2017 at 2:08 PM, Robert Osfield <robert.osfi...@gmail.com>
wrote:

> Hi Mourad,
>
> On 15 May 2017 at 12:58, Mourad Boufarguine
> <mourad.boufargu...@gmail.com> wrote:
> > CMAKE_VS_PLATFORM_TOOLSET is not set unless the user explicitely
> specifies a
> > toolset when invoking cmake :
> >
> > cmake -G "Visual Studio XX" -T v1YY srcDir
> >
> > 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.
>
> Thanks for the clarification.
>
> Looks like we'll need to rewrite this problem block for the case when
> CMAKE_VS_PLATFORM_TOOLSET is not set.
>
> Don't yet know what this might be though...
>
> Robert.
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to