File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,19 @@ option(UTPP_AMPLIFY_WARNINGS
11
11
"Set this to OFF if you wish to use CMake default warning levels; should generally only use to work around support issues for your specific compiler"
12
12
ON )
13
13
14
+ message (STATUS "CMAKE_CXX_COMPILER_ID = ${CMAKE_CXX_COMPILER_ID} " )
14
15
if (MSVC14 OR MSVC12)
16
+ message (STATUS "Using MSVC compiler" )
15
17
# has the support we need
16
18
else ()
17
19
include (CheckCXXCompilerFlag)
18
20
CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
19
21
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
20
22
if (COMPILER_SUPPORTS_CXX14)
23
+ message (STATUS "Specify C++14" )
21
24
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14" )
22
25
elseif (COMPILER_SUPPORTS_CXX11)
26
+ message (STATUS "Specify C++11" )
23
27
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11" )
24
28
else ()
25
29
message (STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler." )
You can’t perform that action at this time.
0 commit comments