Guest User

Untitled

a guest
Apr 30th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. cmake_minimum_required(VERSION 2.8)
  2.  
  3. function(use_llvm TARGET)
  4. message("ARGC=\"${ARGC}\"")
  5. message("ARGN=\"${ARGN}\"")
  6. message("ARGV=\"${ARGV}\"")
  7. message("ARGV0=\"${ARGV0}\"")
  8. message("ARGV1=\"${ARGV1}\"")
  9. endfunction()
  10.  
  11. add_custom_target(foo
  12. COMMAND ls)
  13.  
  14. use_llvm(foo core bitwriter)
  15.  
  16. # Results:
  17. # ARGC="3"
  18. # ARGN="core;bitwriter"
  19. # ARGV="foo;core;bitwriter"
  20. # ARGV0="foo"
  21. # ARGV1="core"
Add Comment
Please, Sign In to add comment