diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b667c16..4d39e9df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: - name: Build run: | - cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -GNinja + cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -GNinja -Werror=dev cmake --build build build: diff --git a/CMakeLists.txt b/CMakeLists.txt index e1cc475a..e374fb19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,6 +2,12 @@ cmake_minimum_required(VERSION 3.13 FATAL_ERROR) project(isle CXX) +math(EXPR bits "8 * ${CMAKE_SIZEOF_VOID_P}") +message(STATUS "Building ${bits}-bit Lego Island") +if (NOT bits EQUAL 32) + message(WARNING "Only 32-bit executables are supported") +endif() + set(MSVC_FOR_DECOMP FALSE) if (MSVC) # Visual C++ 4.2 -> cl version 10.2.0