aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/LLVM-Config.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/LLVM-Config.cmake')
-rw-r--r--cmake/modules/LLVM-Config.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/modules/LLVM-Config.cmake b/cmake/modules/LLVM-Config.cmake
index b24c129..bc0527f 100644
--- a/cmake/modules/LLVM-Config.cmake
+++ b/cmake/modules/LLVM-Config.cmake
@@ -41,9 +41,9 @@ function(explicit_llvm_config executable)
llvm_map_components_to_libnames(LIBRARIES ${link_components})
get_target_property(t ${executable} TYPE)
if("x${t}" STREQUAL "xSTATIC_LIBRARY")
- target_link_libraries(${executable} ${cmake_2_8_12_INTERFACE} ${LIBRARIES})
+ target_link_libraries(${executable} INTERFACE ${LIBRARIES})
elseif("x${t}" STREQUAL "xSHARED_LIBRARY" OR "x${t}" STREQUAL "xMODULE_LIBRARY")
- target_link_libraries(${executable} ${cmake_2_8_12_PRIVATE} ${LIBRARIES})
+ target_link_libraries(${executable} PRIVATE ${LIBRARIES})
else()
# Use plain form for legacy user.
target_link_libraries(${executable} ${LIBRARIES})