@@ -111,11 +111,11 @@ macro(use_compilation_warning_as_error)
111
111
if (MSVC )
112
112
# Only enabled in debug because some old versions of VS STL generate
113
113
# warnings when compiled in release configuration.
114
- add_compile_options ($< $< CONFIG:Debug> :/WX> )
114
+ # add_compile_options($<$<CONFIG:Debug>:/WX>)
115
115
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
116
- add_compile_options (-Werror )
116
+ # add_compile_options(-Werror)
117
117
if (JSONCPP_WITH_STRICT_ISO )
118
- add_compile_options (-pedantic-errors )
118
+ # add_compile_options(-pedantic-errors)
119
119
endif ()
120
120
endif ()
121
121
endmacro ()
@@ -134,35 +134,35 @@ endif()
134
134
135
135
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
136
136
# using regular Clang or AppleClang
137
- add_compile_options (-Wall -Wconversion -Wshadow )
137
+ # add_compile_options(-Wall -Wconversion -Wshadow)
138
138
139
139
if (JSONCPP_WITH_WARNING_AS_ERROR )
140
- add_compile_options (-Werror=conversion -Werror=sign-compare )
140
+ # add_compile_options(-Werror=conversion -Werror=sign-compare)
141
141
endif ()
142
142
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
143
143
# using GCC
144
- add_compile_options (-Wall -Wconversion -Wshadow -Wextra )
144
+ # add_compile_options(-Wall -Wconversion -Wshadow -Wextra)
145
145
# not yet ready for -Wsign-conversion
146
146
147
147
if (JSONCPP_WITH_STRICT_ISO )
148
- add_compile_options (-Wpedantic )
148
+ # add_compile_options(-Wpedantic)
149
149
endif ()
150
150
if (JSONCPP_WITH_WARNING_AS_ERROR )
151
- add_compile_options (-Werror=conversion )
151
+ # add_compile_options(-Werror=conversion)
152
152
endif ()
153
153
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Intel" )
154
154
# using Intel compiler
155
- add_compile_options (-Wall -Wconversion -Wshadow -Wextra )
155
+ # add_compile_options(-Wall -Wconversion -Wshadow -Wextra)
156
156
157
157
if (JSONCPP_WITH_WARNING_AS_ERROR )
158
- add_compile_options (-Werror=conversion )
158
+ # add_compile_options(-Werror=conversion)
159
159
elseif (JSONCPP_WITH_STRICT_ISO )
160
- add_compile_options (-Wpedantic )
160
+ # add_compile_options(-Wpedantic)
161
161
endif ()
162
162
endif ()
163
163
164
164
if (JSONCPP_WITH_WARNING_AS_ERROR )
165
- use_compilation_warning_as_error ()
165
+ # use_compilation_warning_as_error()
166
166
endif ()
167
167
168
168
if (JSONCPP_WITH_PKGCONFIG_SUPPORT )
0 commit comments