Skip to content

Commit

Permalink
CMake: force C99
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Nov 13, 2021
1 parent 46fddf0 commit 922691d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ define_property(
# check compiler and set preferences.
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
#
if (MSVC)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
Expand Down

0 comments on commit 922691d

Please sign in to comment.