You are missing the ending 0s. By the way the MSVCXX vars are discouraged (there is no var defined starting from Visual 2017), MSVC_VERSION is the recommended way now : https://cmake.org/cmake/help/v3.8/variable/MSVC14.html?highlight=msvc14
IF(APPLE) SET(COLLADA_BUILDNAME "mac") ELSEIF(MINGW) SET(COLLADA_BUILDNAME "mingw") ELSEIF(MSVC_VERSION EQUAL 1900 OR MSVC_VERSION EQUAL 1910 ) SET(COLLADA_BUILDNAME "vc140") ELSEIF(MSVC_VERSION EQUAL 1800) SET(COLLADA_BUILDNAME "vc120") ELSEIF(MSVC_VERSION EQUAL 1700) SET(COLLADA_BUILDNAME "vc110") ELSEIF(MSVC_VERSION EQUAL 1600) SET(COLLADA_BUILDNAME "vc100") ELSEIF(MSVC_VERSION EQUAL 1500) SET(COLLADA_BUILDNAME "vc90") ELSEIF(MSVC_VERSION EQUAL 1400) SET(COLLADA_BUILDNAME "vc80") ELSE() SET(COLLADA_BUILDNAME "linux") ENDIF() On Mon, May 15, 2017 at 2:50 PM, Robert Osfield <robert.osfi...@gmail.com> wrote: > On 15 May 2017 at 13:08, Robert Osfield <robert.osfi...@gmail.com> wrote: > > 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... > > Would the following approach work better? > > -- Modified CMakeModues/FindCOLLADA.camke script : > > IF(APPLE) > SET(COLLADA_BUILDNAME "mac") > ELSEIF(MINGW) > SET(COLLADA_BUILDNAME "mingw") > ELSEIF(MSVC14) > SET(COLLADA_BUILDNAME "vc14") > ELSEIF(MSVC12) > SET(COLLADA_BUILDNAME "vc12") > ELSEIF(MSVC11) > SET(COLLADA_BUILDNAME "vc11") > ELSEIF(MSVC10) > SET(COLLADA_BUILDNAME "vc10") > ELSEIF(MSVC90) > SET(COLLADA_BUILDNAME "vc9") > ELSEIF(MSVC80) > SET(COLLADA_BUILDNAME "vc8") > ELSE() > SET(COLLADA_BUILDNAME "linux") > ENDIF() > > SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BOOST_BUILDNAME}) > > IF(${CMAKE_VS_PLATFORM_TOOLSET}) > string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME > ${CMAKE_VS_PLATFORM_TOOLSET}) > ENDIF() > > -- > > I've moved the string(REPLACE...) lines into a single block wrapped in a > check. > > 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