diff --git a/opencl/test/unit_test/offline_compiler/CMakeLists.txt b/opencl/test/unit_test/offline_compiler/CMakeLists.txt index 28cbdf8d69141..5a928417ca050 100644 --- a/opencl/test/unit_test/offline_compiler/CMakeLists.txt +++ b/opencl/test/unit_test/offline_compiler/CMakeLists.txt @@ -143,7 +143,7 @@ if(WIN32) endif() if(UNIX) - target_link_libraries(ocloc_tests dl pthread) + target_link_libraries(ocloc_tests dl pthread execinfo) endif() get_property(CLOC_LIB_FOLDER TARGET ocloc_lib PROPERTY FOLDER) diff --git a/opencl/test/unit_test/offline_compiler/segfault_test/CMakeLists.txt b/opencl/test/unit_test/offline_compiler/segfault_test/CMakeLists.txt index 79d62e19ed702..056ea7f2ac0db 100644 --- a/opencl/test/unit_test/offline_compiler/segfault_test/CMakeLists.txt +++ b/opencl/test/unit_test/offline_compiler/segfault_test/CMakeLists.txt @@ -44,7 +44,7 @@ if(MSVC) target_link_libraries(ocloc_segfault_test dbghelp) endif() if(UNIX) - target_link_libraries(ocloc_segfault_test dl pthread) + target_link_libraries(ocloc_segfault_test dl pthread execinfo) endif() set(CLOC_SEGFAULT_TEST_INCLUDES diff --git a/shared/offline_compiler/source/CMakeLists.txt b/shared/offline_compiler/source/CMakeLists.txt index d68b225e41268..5c3edb5103820 100644 --- a/shared/offline_compiler/source/CMakeLists.txt +++ b/shared/offline_compiler/source/CMakeLists.txt @@ -240,7 +240,7 @@ if(MSVC) endif() if(UNIX) - target_link_libraries(${OCLOC_NAME}_lib dl pthread) + target_link_libraries(${OCLOC_NAME}_lib dl pthread execinfo) endif() set(CLOC_LIB_SRCS_LIB ${CLOC_LIB_SRCS_LIB} PARENT_SCOPE)