Skip to content

Commit

Permalink
fix cmake typo for power10 cc version check
Browse files Browse the repository at this point in the history
fixes 668f48f
  • Loading branch information
nekopsykose committed Aug 9, 2024
1 parent cd3945b commit 1265eee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/system.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ if (DEFINED TARGET)
endif()

if (${TARGET} STREQUAL POWER10)
if (CMAKE_C_COMPILER VERSION VERSION_GREATER 10.2 OR CMAKE_C_COMPILER_VERSION VERSION_EQUAL 10.2)
if (CMAKE_C_COMPILER_VERSION VERSION_GREATER 10.2 OR CMAKE_C_COMPILER_VERSION VERSION_EQUAL 10.2)
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mcpu=power10 -mtune=power10 -mvsx -fno-fast-math")
else ()
message(FATAL_ERROR "Compiler GCC ${CMAKE_C_COMPILER_VERSION} does not support Power10.")
Expand Down

0 comments on commit 1265eee

Please sign in to comment.