Skip to content

Commit 46c613f

Browse files
committed
-Werror is a bad idea. Reverting.
1 parent 01332be commit 46c613f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ endif()
179179

180180
target_compile_options(elements PRIVATE
181181
$<$<CXX_COMPILER_ID:GNU>:-Wall -Wextra -Wpedantic -ftemplate-backtrace-limit=0>
182-
$<$<CXX_COMPILER_ID:Clang>:-Werror -Wall -Wpedantic -ftemplate-backtrace-limit=0>
183-
$<$<CXX_COMPILER_ID:AppleClang>:-Werror -Wall -Wpedantic -ftemplate-backtrace-limit=0>
182+
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wpedantic -ftemplate-backtrace-limit=0>
183+
$<$<CXX_COMPILER_ID:AppleClang>:-Wall -Wpedantic -ftemplate-backtrace-limit=0>
184184
$<$<CXX_COMPILER_ID:MSVC>:/W4 /wd4244 /wd4305 /wd4996 /wd4267 /wd4018 /utf-8>
185185
)
186186

@@ -191,7 +191,7 @@ endif()
191191

192192
if (APPLE)
193193
# Not sure why APPLE is not picking the target_compile_options above
194-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Wpedantic -ftemplate-backtrace-limit=0")
194+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic -ftemplate-backtrace-limit=0")
195195
endif()
196196

197197
###############################################################################

0 commit comments

Comments
 (0)