Skip to content

Commit

Permalink
Fix compilation with GCC>=13
Browse files Browse the repository at this point in the history
  • Loading branch information
xadupre committed Jul 13, 2024
1 parent d836302 commit c5c4f33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _cmake/constants.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ if(APPLE)
set(DEFAULT_OSX_DEPLOYMENT_TARGET "10.15")
endif()

if(CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include stdint.h")
endif()

#
# C++ 14 or C++ 17 or...
#
Expand Down

0 comments on commit c5c4f33

Please sign in to comment.