OLD | NEW |
1 include(LLVMParseArguments) | 1 include(LLVMParseArguments) |
2 include(LLVMProcessSources) | 2 include(LLVMProcessSources) |
3 include(LLVM-Config) | 3 include(LLVM-Config) |
4 | 4 |
5 function(llvm_update_compile_flags name) | 5 function(llvm_update_compile_flags name) |
6 get_property(sources TARGET ${name} PROPERTY SOURCES) | 6 get_property(sources TARGET ${name} PROPERTY SOURCES) |
7 if("${sources}" MATCHES "\\.c(;|$)") | 7 if("${sources}" MATCHES "\\.c(;|$)") |
8 set(update_src_props ON) | 8 set(update_src_props ON) |
9 endif() | 9 endif() |
10 | 10 |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 if( LLVM_BUILD_EXAMPLES ) | 493 if( LLVM_BUILD_EXAMPLES ) |
494 install(TARGETS ${name} RUNTIME DESTINATION examples) | 494 install(TARGETS ${name} RUNTIME DESTINATION examples) |
495 endif() | 495 endif() |
496 set_target_properties(${name} PROPERTIES FOLDER "Examples") | 496 set_target_properties(${name} PROPERTIES FOLDER "Examples") |
497 endmacro(add_llvm_example name) | 497 endmacro(add_llvm_example name) |
498 | 498 |
499 | 499 |
500 macro(add_llvm_utility name) | 500 macro(add_llvm_utility name) |
501 add_llvm_executable(${name} ${ARGN}) | 501 add_llvm_executable(${name} ${ARGN}) |
502 set_target_properties(${name} PROPERTIES FOLDER "Utils") | 502 set_target_properties(${name} PROPERTIES FOLDER "Utils") |
| 503 # @LOCALMOD-BEGIN |
| 504 if( LLVM_INSTALL_UTILS ) |
| 505 install (TARGETS ${name} RUNTIME DESTINATION bin) |
| 506 endif() |
| 507 # @LOCALMOD-END |
503 endmacro(add_llvm_utility name) | 508 endmacro(add_llvm_utility name) |
504 | 509 |
505 | 510 |
506 macro(add_llvm_target target_name) | 511 macro(add_llvm_target target_name) |
507 include_directories(BEFORE | 512 include_directories(BEFORE |
508 ${CMAKE_CURRENT_BINARY_DIR} | 513 ${CMAKE_CURRENT_BINARY_DIR} |
509 ${CMAKE_CURRENT_SOURCE_DIR}) | 514 ${CMAKE_CURRENT_SOURCE_DIR}) |
510 add_llvm_library(LLVM${target_name} ${ARGN}) | 515 add_llvm_library(LLVM${target_name} ${ARGN}) |
511 set( CURRENT_LLVM_TARGET LLVM${target_name} ) | 516 set( CURRENT_LLVM_TARGET LLVM${target_name} ) |
512 endmacro(add_llvm_target) | 517 endmacro(add_llvm_target) |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 endif() | 736 endif() |
732 | 737 |
733 # Produce a specific suffixed check rule. | 738 # Produce a specific suffixed check rule. |
734 add_lit_target(${target} ${comment} | 739 add_lit_target(${target} ${comment} |
735 ${ARG_DEFAULT_ARGS} | 740 ${ARG_DEFAULT_ARGS} |
736 PARAMS ${ARG_PARAMS} | 741 PARAMS ${ARG_PARAMS} |
737 DEPENDS ${ARG_DEPENDS} | 742 DEPENDS ${ARG_DEPENDS} |
738 ARGS ${ARG_ARGS} | 743 ARGS ${ARG_ARGS} |
739 ) | 744 ) |
740 endfunction() | 745 endfunction() |
OLD | NEW |