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 7d567c2 commit d02273a
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 @@ -20,9 +20,9 @@ if(USE_CUDA)
check_language(CUDA)
message("CUDA Version: ${CMAKE_CUDA_COMPILER_VERSION}")
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 d02273a

Please sign in to comment.