SWDEV-296812 - Fix LINK_LANGUAGE issue

LINK_LANGUAGE support has some issue in CMake versions from 3.18.0 to
3.19.8 when complex libs' dependence exists. Jump to a known CMake
version 3.20.0 where the issue is fixed.

Change-Id: I3fe6dbc35a7b14baa210df297b7885df83d28178


[ROCm/clr commit: 3452a09975]
This commit is contained in:
Tao Sang
2021-07-28 08:42:37 -04:00
parent f25a9e8217
commit 17a02d1ad5
+1 -1
View File
@@ -72,7 +72,7 @@ function(hip_add_interface_compile_flags TARGET)
endfunction()
function(hip_add_interface_link_flags TARGET)
if(CMAKE_VERSION VERSION_LESS 3.18)
if(CMAKE_VERSION VERSION_LESS 3.20)
set_property(TARGET ${TARGET} APPEND PROPERTY
INTERFACE_LINK_LIBRARIES "${ARGN}"
)