Skip to content

Commit

Permalink
CMAKE_C_COMPILER_VERSION VERSION_LESS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Feb 27, 2024
1 parent 7442d06 commit e8c1bd0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ add_compile_definitions(BUILDING_ORT_GENAI_C)
if(USE_CUDA)
check_language(CUDA)
endif()
#if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 9)
# message(FATAL_ERROR "GCC version must be greater than or equal to 9")
#endif()
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 8)
message(FATAL_ERROR "GCC version must be greater than or equal to 8")
endif()

if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" AND CMAKE_C_COMPILER_VERSION VERSION_LESS 10)
add_compile_definitions(USE_CXX17=1)
Expand Down

0 comments on commit e8c1bd0

Please sign in to comment.