diff options
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/AddDatafile.cmake | 3 | ||||
-rw-r--r-- | cmake/modules/AddDownloadableResource.cmake | 3 | ||||
-rw-r--r-- | cmake/modules/GitDescribe.cmake | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/cmake/modules/AddDatafile.cmake b/cmake/modules/AddDatafile.cmake index f68ad04..6deda52 100644 --- a/cmake/modules/AddDatafile.cmake +++ b/cmake/modules/AddDatafile.cmake @@ -17,8 +17,7 @@ # # To create the archive the Datafile.exe is used - for non-Windows platforms an emulator that can run it is required. -function(add_datafile) - set(DATAFILE_TARGET ${ARGV0}) +function(add_datafile DATAFILE_TARGET) cmake_parse_arguments( PARSE_ARGV 1 DATAFILE diff --git a/cmake/modules/AddDownloadableResource.cmake b/cmake/modules/AddDownloadableResource.cmake index 9d00f58..5880aa0 100644 --- a/cmake/modules/AddDownloadableResource.cmake +++ b/cmake/modules/AddDownloadableResource.cmake @@ -32,8 +32,7 @@ # cleaned explicitly either by removing them manually or by running 'clean_downloaded_<target_name>' target. set(ADD_DOWNLOADABLE_RESOURCE_SCRIPT ${CMAKE_CURRENT_LIST_DIR}/download_resource.cmake.in) -function(add_downloadable_resource) - set(RESOURCE_TARGET ${ARGV0}) +function(add_downloadable_resource RESOURCE_TARGET) cmake_parse_arguments( PARSE_ARGV 1 RESOURCE diff --git a/cmake/modules/GitDescribe.cmake b/cmake/modules/GitDescribe.cmake index 99bd1b5..10b54ed 100644 --- a/cmake/modules/GitDescribe.cmake +++ b/cmake/modules/GitDescribe.cmake @@ -1,5 +1,7 @@ +# Finds a human readable version name for current repository revision based on available tags. Provided variable VAR +# will be set to contain found value. + function(git_describe VAR) - set(VAR ${ARGV0}) execute_process( COMMAND git describe --tags HEAD WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} |