diff --git a/assimpTargets-debug.cmake.in b/assimpTargets-debug.cmake.in index 6ee6b2886..1ebe2a608 100644 --- a/assimpTargets-debug.cmake.in +++ b/assimpTargets-debug.cmake.in @@ -23,8 +23,12 @@ if(MSVC) set(MSVC_PREFIX "vc110") elseif( MSVC12 ) set(MSVC_PREFIX "vc120") - elseif( MSVC14 ) + elseif( MSVC_VERSION LESS 1910) set(MSVC_PREFIX "vc140") + elseif( MSVC_VERSION LESS 1920) + set(MSVC_PREFIX "vc141") + elseif( MSVC_VERSION LESS 1930) + set(MSVC_PREFIX "vc142") else() set(MSVC_PREFIX "vc150") endif() diff --git a/assimpTargets-release.cmake.in b/assimpTargets-release.cmake.in index 56bfc3602..b09b881f7 100644 --- a/assimpTargets-release.cmake.in +++ b/assimpTargets-release.cmake.in @@ -23,8 +23,12 @@ if(MSVC) set(MSVC_PREFIX "vc110") elseif( MSVC12 ) set(MSVC_PREFIX "vc120") - elseif( MSVC14 ) + elseif( MSVC_VERSION LESS 1910) set(MSVC_PREFIX "vc140") + elseif( MSVC_VERSION LESS 1920) + set(MSVC_PREFIX "vc141") + elseif( MSVC_VERSION LESS 1930) + set(MSVC_PREFIX "vc142") else() set(MSVC_PREFIX "vc150") endif()