1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

[CMake] Deliberately get all LLVM library dependencies for standalone builds.

CMake won't expand the dependency graph for us if the dependencies are in
another project, which leads to link errors in the standalone build.
This is a refinement of r200765.

llvm-svn: 200812
This commit is contained in:
Jordan Rose 2014-02-05 00:02:42 +00:00
parent 80d188147b
commit 91d76aa13a

View File

@ -62,7 +62,13 @@ endmacro(llvm_config)
function(explicit_llvm_config executable)
set( link_components ${ARGN} )
# Check for out-of-tree builds.
if(PROJECT_NAME STREQUAL "LLVM")
llvm_map_components_to_libnames(LIBRARIES ${link_components})
else()
explicit_map_components_to_libraries(LIBRARIES ${link_components})
endif()
target_link_libraries(${executable} ${LIBRARIES})
endfunction(explicit_llvm_config)