diff --git a/SingleSource/UnitTests/CMakeLists.txt b/SingleSource/UnitTests/CMakeLists.txt index fe8f6ad8d..e4e290417 100644 --- a/SingleSource/UnitTests/CMakeLists.txt +++ b/SingleSource/UnitTests/CMakeLists.txt @@ -100,6 +100,8 @@ if(ARCH STREQUAL "MOS") if (CMAKE_BUILD_TYPE STREQUAL Debug) list(REMOVE_ITEM Source fixed_point.cpp) +else() + target_link_libraries(fixed_point PRIVATE printf_flt) endif() endif() @@ -130,7 +132,6 @@ if(ARCH STREQUAL "MOS") target_link_libraries(StructModifyTest PRIVATE printf_flt) target_link_libraries(byval-alignment PRIVATE printf_flt) target_link_libraries(printf_float PRIVATE printf_flt) - target_link_libraries(fixed_point PRIVATE printf_flt) else() if (COMPILER_HAS_MATRIX_FLAG) set_property(TARGET matrix-types-spec PROPERTY LINK_OPTIONS -fenable-matrix)