Refactored COLLADA_BUILDNAME and COLLADA_BOOST_BUILDNAME to resolve case where CMAKE_VS_PLATFORM_TOOLSET is not set.
This commit is contained in:
parent
d02be06df9
commit
90cda8ede2
@ -23,37 +23,38 @@ ELSE ()
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
IF(APPLE)
|
||||
SET(COLLADA_BUILDNAME "mac")
|
||||
SET(COLLADA_BOOST_BUILDNAME "mac")
|
||||
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
||||
ELSEIF(MINGW)
|
||||
SET(COLLADA_BUILDNAME "mingw")
|
||||
SET(COLLADA_BOOST_BUILDNAME "mingw")
|
||||
ELSEIF(MSVC14)
|
||||
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
||||
ELSEIF(MSVC_VERSION EQUAL 1900 OR MSVC_VERSION EQUAL 1910 )
|
||||
SET(COLLADA_BUILDNAME "vc14")
|
||||
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
||||
ELSEIF(MSVC12)
|
||||
SET(COLLADA_BOOST_BUILDNAME "vc140")
|
||||
ELSEIF(MSVC_VERSION EQUAL 1800)
|
||||
SET(COLLADA_BUILDNAME "vc12")
|
||||
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
||||
ELSEIF(MSVC11)
|
||||
SET(COLLADA_BOOST_BUILDNAME "vc120")
|
||||
ELSEIF(MSVC_VERSION EQUAL 1700)
|
||||
SET(COLLADA_BUILDNAME "vc11")
|
||||
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
||||
ELSEIF(MSVC10)
|
||||
SET(COLLADA_BOOST_BUILDNAME "vc110")
|
||||
ELSEIF(MSVC_VERSION EQUAL 1600)
|
||||
SET(COLLADA_BUILDNAME "vc10")
|
||||
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
||||
ELSEIF(MSVC90)
|
||||
SET(COLLADA_BOOST_BUILDNAME "vc100")
|
||||
ELSEIF(MSVC_VERSION EQUAL 1500)
|
||||
SET(COLLADA_BUILDNAME "vc9")
|
||||
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
||||
ELSEIF(MSVC80)
|
||||
SET(COLLADA_BOOST_BUILDNAME "vc90")
|
||||
ELSEIF(MSVC_VERSION EQUAL 1400)
|
||||
SET(COLLADA_BUILDNAME "vc8")
|
||||
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
||||
ELSE(APPLE)
|
||||
SET(COLLADA_BOOST_BUILDNAME "vc80")
|
||||
ELSE()
|
||||
SET(COLLADA_BUILDNAME "linux")
|
||||
SET(COLLADA_BOOST_BUILDNAME "linux")
|
||||
ENDIF(APPLE)
|
||||
SET(COLLADA_BOOST_BUILDNAME ${COLLADA_BUILDNAME})
|
||||
ENDIF()
|
||||
|
||||
IF(${CMAKE_VS_PLATFORM_TOOLSET})
|
||||
string(REPLACE "v" "vc" COLLADA_BOOST_BUILDNAME ${CMAKE_VS_PLATFORM_TOOLSET})
|
||||
ENDIF()
|
||||
|
||||
|
||||
FIND_PATH(COLLADA_INCLUDE_DIR dae.h
|
||||
|
Loading…
Reference in New Issue
Block a user