From e8c1bd06de3e835f6714427ea3f31da9dab6aba4 Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Tue, 27 Feb 2024 14:59:15 -0500 Subject: [PATCH] CMAKE_C_COMPILER_VERSION VERSION_LESS 8 --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f18109fe..80addda51 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)