File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,13 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
110
110
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wconversion -Wshadow -Wextra -Werror=conversion" )
111
111
# not yet ready for -Wsign-conversion
112
112
113
+ if (JSONCPP_WITH_STRICT_ISO AND NOT JSONCPP_WITH_WARNING_AS_ERROR)
114
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic" )
115
+ endif ()
116
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel" )
117
+ # using Intel compiler
118
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wconversion -Wshadow -Wextra -Werror=conversion" )
119
+
113
120
if (JSONCPP_WITH_STRICT_ISO AND NOT JSONCPP_WITH_WARNING_AS_ERROR)
114
121
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic" )
115
122
endif ()
You can’t perform that action at this time.
0 commit comments