From aaea564cbe37b47059272a103d8581b7a71b455e Mon Sep 17 00:00:00 2001 From: kimkulling Date: Fri, 7 Aug 2020 16:14:44 +0200 Subject: [PATCH] closes https://github.com/assimp/assimp/issues/3004 : use prefix when ms_tools were found. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0244a73ef..42161c6d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -684,7 +684,8 @@ if(WIN32) ENDIF() IF(MSVC_TOOLSET_VERSION) - set(MSVC_PREFIX "vc${MSVC_TOOLSET_VERSION}") + SET(MSVC_PREFIX "vc${MSVC_TOOLSET_VERSION}") + SET(ASSIMP_MSVC_VERSION ${MCVS_PREFIX}) ELSE() IF(MSVC12) SET(ASSIMP_MSVC_VERSION "vc120")