Skip to content

Commit b27a118

Browse files
authored
Merge pull request #5468 from martin-frbg/issue5464
Fix CMake builds not passing the HFLOAT16 parameter to generated files
2 parents b537dac + 4ef70b4 commit b27a118

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/utils.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,9 @@ function(GenerateNamedObjects sources_in)
427427
endif ()
428428
if (${float_type} STREQUAL "BFLOAT16")
429429
list(APPEND obj_defines "BFLOAT16")
430+
endif ()
431+
if (${float_type} STREQUAL "HFLOAT16")
432+
list(APPEND obj_defines "HFLOAT16")
430433
endif ()
431434
if (${float_type} STREQUAL "COMPLEX" OR ${float_type} STREQUAL "ZCOMPLEX")
432435
list(APPEND obj_defines "COMPLEX")

0 commit comments

Comments
 (0)