Commit 341d76ce authored by Mateusz Belicki's avatar Mateusz Belicki

Fix for detecting dynamic libraries when using LLVM7

Change-Id: I13016e9ccd72cd3f125947b37c75e73d01f24310
parent 1dac19cc
......@@ -3263,7 +3263,8 @@ else()
message(STATUS "[IGC] Using system LLVM ${LLVM_PACKAGE_VERSION}")
add_definitions(${LLVM_DEFINITIONS})
# Check if found package has dynamic library and select them if possible.
list(FIND LLVM_FIND_COMPONENTS "LLVM" DYN_LIB_INDEX)
llvm_map_components_to_libnames(llvm_libs all)
list(FIND llvm_libs "LLVM" DYN_LIB_INDEX)
if(${DYN_LIB_INDEX} GREATER -1)
message(STATUS "[IGC] Using dynamic LLVM.")
set(IGC_BUILD__LLVM_LIBS_TO_LINK ${IGC_BUILD__LLVM_DYNAMIC_LIBS_TO_LINK})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment