llvm.org GIT mirror llvm / 091ea8a
[CMake] Cleanup version check for 2.8.12 Since we're always greater than 2.8.12, we don't need this check anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272219 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 4 years ago
1 changed file(s) with 8 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
495495 get_property(lib_deps GLOBAL PROPERTY LLVMBUILD_LIB_DEPS_${name})
496496 endif()
497497
498 if(CMAKE_VERSION VERSION_LESS 2.8.12)
499 # Link libs w/o keywords, assuming PUBLIC.
500 target_link_libraries(${name}
498 if(ARG_STATIC)
499 set(libtype INTERFACE)
500 else()
501 # We can use PRIVATE since SO knows its dependent libs.
502 set(libtype PRIVATE)
503 endif()
504
505 target_link_libraries(${name} ${libtype}
501506 ${ARG_LINK_LIBS}
502507 ${lib_deps}
503508 ${llvm_libs}
504509 )
505 elseif(ARG_STATIC)
506 target_link_libraries(${name} INTERFACE
507 ${ARG_LINK_LIBS}
508 ${lib_deps}
509 ${llvm_libs}
510 )
511 else()
512 # We can use PRIVATE since SO knows its dependent libs.
513 target_link_libraries(${name} PRIVATE
514 ${ARG_LINK_LIBS}
515 ${lib_deps}
516 ${llvm_libs}
517 )
518 endif()
519510
520511 if(LLVM_COMMON_DEPENDS)
521512 add_dependencies(${name} ${LLVM_COMMON_DEPENDS})