From 67770b9cf07dd353a6eb7a3bc3a74ab7e16a14a8 Mon Sep 17 00:00:00 2001 From: grunt-lucas Date: Sun, 26 Jan 2025 13:26:16 -0700 Subject: [PATCH] Disable warnings-as-errors in gcc linux release build --- Porytiles-0.x/CMakeLists.txt | 5 ++++- Scripts/package.sh | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Porytiles-0.x/CMakeLists.txt b/Porytiles-0.x/CMakeLists.txt index 0416842f..88859da6 100644 --- a/Porytiles-0.x/CMakeLists.txt +++ b/Porytiles-0.x/CMakeLists.txt @@ -16,7 +16,10 @@ if(MSVC) else() # Cannot enable -Wextra in 0.x since some of our header-only dependencies throw warnings # that break the build. - add_compile_options(-Wall -Wpedantic -Werror) + # + # Remove warnings-as-errors temporarily to stop GCC from complaining about one of the header libs. + # add_compile_options(-Wall -Wpedantic -Werror) + add_compile_options(-Wall -Wpedantic) endif() # Enable testing diff --git a/Scripts/package.sh b/Scripts/package.sh index 5dcee064..d24292f5 100755 --- a/Scripts/package.sh +++ b/Scripts/package.sh @@ -68,9 +68,9 @@ linux_amd64_gcc() { mkdir -p "$output_directory/porytiles-$mode" pushd Porytiles-0.x export CXX="g++" - cmake --compile-no-warning-as-error -DWARNINGS_AS_ERRORS=OFF -DCMAKE_COMPILE_WARNING_AS_ERROR=false -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_FIND_FRAMEWORK=NEVER -B build + cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_FIND_FRAMEWORK=NEVER -B build pushd build - cmake --compile-no-warning-as-error -DWARNINGS_AS_ERRORS=OFF --build . + cmake --build . popd popd package_release