OSDN Git Service

[cmake] fix a typo in llvm_config macro
[android-x86/external-llvm.git] / cmake / modules / LLVM-Config.cmake
index 10fd526..8eabddc 100644 (file)
@@ -68,7 +68,7 @@ macro(llvm_config executable)
   cmake_parse_arguments(ARG "USE_SHARED" "" "" ${ARGN})
   set(link_components ${ARG_UNPARSED_ARGUMENTS})
 
-  if(USE_SHARED)
+  if(ARG_USE_SHARED)
     # If USE_SHARED is specified, then we link against libLLVM,
     # but also against the component libraries below. This is
     # done in case libLLVM does not contain all of the components