Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 2.8)
- function(use_llvm TARGET)
- message("ARGC=\"${ARGC}\"")
- message("ARGN=\"${ARGN}\"")
- message("ARGV=\"${ARGV}\"")
- message("ARGV0=\"${ARGV0}\"")
- message("ARGV1=\"${ARGV1}\"")
- endfunction()
- add_custom_target(foo
- COMMAND ls)
- use_llvm(foo core bitwriter)
- # Results:
- # ARGC="3"
- # ARGN="core;bitwriter"
- # ARGV="foo;core;bitwriter"
- # ARGV0="foo"
- # ARGV1="core"
Add Comment
Please, Sign In to add comment