1
0
mirror of https://github.com/open-simh/simh.git synced 2026-05-20 04:50:56 +00:00

Tell cmake to use c99 to fix build with GCC 15

GCC 15 uses c23 instead of c17 by default. Apparently c23 is not backwards compatible to older C standards... This prevented me from easily compuling simh so I added a setting to tell cmake to use c99 fixing the compiling errors.

Fixes #490
This commit is contained in:
tkbits
2026-02-25 02:01:30 -08:00
committed by Paul Koning
parent 84b3694980
commit e2d706cbd0

View File

@@ -82,6 +82,9 @@ endif()
project(simh VERSION "${SIMH_VERSION}" LANGUAGES C CXX)
## Tell cmake we need c99 because GCC 15 defaults to c23 which breaks things.
set(CMAKE_C_STANDARD 99)
include(vcpkg-setup)
include(GNUInstallDirs)