Skip to content

Commit 66bb5af

Browse files
authored
{cmake} Don't force warnings as errors when building self (#299)
Fixes #279
1 parent f351f93 commit 66bb5af

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ jobs:
161161
-DE57_BUILD_SHARED=${{ matrix.build_shared }}
162162
-DE57_BUILD_TEST=${{ matrix.build_test }}
163163
-DE57_VALIDATION_LEVEL=${{ matrix.validation_level }}
164+
-DE57FORMAT_WARNING_AS_ERROR:BOOL=ON
164165
-DE57FORMAT_SANITIZE_ALL:BOOL=ON
165166
.
166167

CMakeLists.txt

-6
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,6 @@ target_compile_features( ${PROJECT_NAME}
162162
# Warnings
163163
include( CompilerWarnings )
164164

165-
# Treat warnings as errors if we are building ourself.
166-
if ( E57_BUILDING_SELF )
167-
unset( ${PROJECT_NAME_UPPERCASE}_WARNING_AS_ERROR CACHE )
168-
set_warning_as_error()
169-
endif()
170-
171165
# Check our validation level
172166
string( STRIP "${E57_VALIDATION_LEVEL}" E57_VALIDATION_LEVEL )
173167
if ( NOT E57_VALIDATION_LEVEL MATCHES "^[0-2]$" )

0 commit comments

Comments
 (0)