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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user