SWDEV-1 - Add -ldl as linking flag for catch2 tests. (#2741)

Change-Id: I81c759363f35c3822447563e51c2db670edf9cb3

[ROCm/hip-tests commit: 50ebe1803e]
This commit is contained in:
ROCm CI Service Account
2022-06-16 09:28:30 +05:30
committed by GitHub
parent ec2955115d
commit dcc9239ed0
@@ -216,6 +216,7 @@ function(hip_add_exe_to_target)
catch_discover_tests(${_NAME} PROPERTIES SKIP_REGULAR_EXPRESSION "HIP_SKIP_THIS_TEST")
if(UNIX)
set(_LINKER_LIBS ${_LINKER_LIBS} stdc++fs)
set(_LINKER_LIBS ${_LINKER_LIBS} -ldl)
else()
# res files are built resource files using rc files.
# use llvm-rc exe to build the res files