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")
110110 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wconversion -Wshadow -Wextra -Werror=conversion" )
111111 # not yet ready for -Wsign-conversion
112112
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+
113120 if (JSONCPP_WITH_STRICT_ISO AND NOT JSONCPP_WITH_WARNING_AS_ERROR)
114121 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic" )
115122 endif ()
You can’t perform that action at this time.
0 commit comments