mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Fix MSVC version check to support use of clang-cl front-end
- Raised as issue: #521 Change-Id: Iaea6b43484b90ec8789bda0447c8a90759974ec1
This commit is contained in:
committed by
Sameer Agarwal
parent
b70687fcc8
commit
a09682f00d
+2
-1
@@ -57,7 +57,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE BOOL "")
|
||||
mark_as_advanced(CMAKE_CXX_STANDARD_REQUIRED)
|
||||
|
||||
# MSVC versions < 2013 did not fully support >= C++11.
|
||||
if (MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES MSVC AND
|
||||
CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.0)
|
||||
message(FATAL_ERROR "Invalid CMAKE_CXX_COMPILER_VERSION: "
|
||||
"${CMAKE_CXX_COMPILER_VERSION}. Ceres requires at least MSVC 2013 Update 4+")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user