GTestSuite: Fix builds testing against MKL

Correction to CMakeLists.txt to fix problem building executables
when testing against MKL.

AMD-Internal: [CPUPL-5928]
Change-Id: Ie427fff0afb48be6ce6d940b1db2c9d1c7a40e5b
This commit is contained in:
Edward Smyth
2024-10-29 05:39:35 -04:00
committed by sireesha.sanga
parent e9919761f7
commit 0d5c09d042

View File

@@ -148,13 +148,13 @@ foreach(dir ${test_files})
if(TEST_INPUT_ARGS)
target_compile_definitions(${exec_name} PUBLIC TEST_INPUT_ARGS)
endif()
add_test(NAME ${exec_name} COMMAND ${exec_name})
if(REF_CBLAS STREQUAL "MKL")
set_property(TEST ${exec_name} PROPERTY ENVIRONMENT ${MKL_ENV})
endif()
if(BLIS_LINKING_TYPE STREQUAL "shared")
set_property(TEST ${exec_name} PROPERTY ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:${BLIS_LIB_PATH}")
endif()
add_test(NAME ${exec_name} COMMAND ${exec_name})
endif()
list(APPEND all_execs ${exec_name})
endforeach()