Skip to content

Commit

Permalink
Set C standard to C11 in CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Nov 14, 2023
1 parent 841826d commit 189ce05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ elseif (WIN32)
set_target_properties(flint PROPERTIES RUNTIME_OUTPUT_NAME "flint-${FLINT_MAJOR_SO}")
endif()

set_property(TARGET flint PROPERTY C_STANDARD 11)

if(NOT DEFINED IPO_SUPPORTED)
message(STATUS "Checking for IPO")
check_ipo_supported(RESULT ipo_supported LANGUAGES C)
Expand Down

0 comments on commit 189ce05

Please sign in to comment.