File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,14 @@ option(UTPP_AMPLIFY_WARNINGS
13
13
14
14
set (LIB_SUFFIX "" CACHE STRING "Identifier to add to end of lib directory name e.g. 64 for lib64" )
15
15
16
- if (MSVC14 OR MSVC12)
17
- # has the support we need
16
+ if (${CMAKE_CXX_COMPILER_ID} MATCHES "MSVC" )
17
+ # CHECK_CXX_COMPILER_FLAG could be used
18
+ # but MSVC version is preferred for feature requirements
19
+ if (MSVC14 OR MSVC12)
20
+ # has the support we need
21
+ else ()
22
+ message (STATUS "The MSVC compiler version does not support UnitTest++ C++11 features." )
23
+ endif ()
18
24
else ()
19
25
include (CheckCXXCompilerFlag)
20
26
CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
24
30
elseif (COMPILER_SUPPORTS_CXX11)
25
31
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
26
32
else ()
27
- message (STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler ." )
33
+ message (STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support." )
28
34
endif ()
29
35
endif ()
30
36
You can’t perform that action at this time.
0 commit comments