File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,8 +13,14 @@ option(UTPP_AMPLIFY_WARNINGS
1313
1414set (LIB_SUFFIX "" CACHE STRING "Identifier to add to end of lib directory name e.g. 64 for lib64" )
1515
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 ()
1824else ()
1925 include (CheckCXXCompilerFlag )
2026 CHECK_CXX_COMPILER_FLAG ("-std=c++14" COMPILER_SUPPORTS_CXX14 )
2430 elseif (COMPILER_SUPPORTS_CXX11)
2531 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
2632 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." )
2834 endif ()
2935endif ()
3036
You can’t perform that action at this time.
0 commit comments