Browse Source

fix cmake typo for power10 cc version check

fixes 668f48f4fc
tags/v0.3.29
psykose 1 year ago
parent
commit
1265eee85c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      cmake/system.cmake

+ 1
- 1
cmake/system.cmake View File

@@ -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.")


Loading…
Cancel
Save