File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,16 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
43
43
INCLUDE (CheckCXXCompilerFlag )
44
44
CHECK_CXX_COMPILER_FLAG (-std=c++11 HAVE_STD11 )
45
45
if (HAVE_STD11 )
46
- set ( CMAKE_CXX_FLAGS -std=c++11 -Wall )
46
+ list ( APPEND CMAKE_CXX_FLAGS " -std=c++11 -Wall" )
47
47
else ()
48
48
message (FATAL_ERROR "No advanced standard C++ support (-std=c++11 not defined)." )
49
49
endif ()
50
50
elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang )
51
51
INCLUDE (CheckCXXCompilerFlag )
52
52
CHECK_CXX_COMPILER_FLAG (-std=c++11 HAVE_STD11 )
53
53
if (HAVE_STD11 )
54
- set ( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ -Wall" )
55
- set ( CMAKE_CXX_LINK_FLAGS "-std=c++11 -stdlib=libc++" )
54
+ list ( APPEND CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ -Wall" )
55
+ list ( APPEND CMAKE_CXX_LINK_FLAGS "-std=c++11 -stdlib=libc++" )
56
56
else ()
57
57
message (FATAL_ERROR "No C++11 support for Clang version. Please upgrade Clang to a version supporting C++11." )
58
58
endif ()
You can’t perform that action at this time.
0 commit comments