Forked from antiagainst/function-argument.cmake
Last active
November 8, 2018 11:36
-
-
Save 3gx/e015637e2bc87b7b25f5 to your computer and use it in GitHub Desktop.
Revisions
-
antiagainst renamed this gist
Dec 28, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
antiagainst created this gist
Dec 28, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ 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"