Skip to content

Commit

Permalink
CMake: Tweaked some standard setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Apr 8, 2023
1 parent 38a8600 commit 58f0eac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions libogg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project(libOGG VERSION 1.3.5 LANGUAGES C)

include(${CMAKE_CURRENT_SOURCE_DIR}/../audio_codec_common.cmake)

set(CMAKE_C_STANDARD 90)

add_library(ogg STATIC
src/bitwise.c
src/framing.c
Expand Down
6 changes: 2 additions & 4 deletions libtimidity-sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ project(libTimiditySDL VERSION 0.2 LANGUAGES C)

include(${CMAKE_CURRENT_SOURCE_DIR}/../audio_codec_common.cmake)

if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
# Turn on warnings and legacy C/C++ standards to support more compilers
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c90")
endif()
# Turn on warnings and legacy C/C++ standards to support more compilers
set(CMAKE_C_STANDARD 90)

if(NOT MSVC)
ac_add_c_warning_flag("all" ALL)
Expand Down
2 changes: 2 additions & 0 deletions libvorbis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project(libVorbis VERSION 1.3.7 LANGUAGES C)

include(CheckIncludeFile)

set(CMAKE_C_STANDARD 99)

include(${CMAKE_CURRENT_SOURCE_DIR}/../audio_codec_common.cmake)

add_definitions(
Expand Down

0 comments on commit 58f0eac

Please sign in to comment.