summaryrefslogtreecommitdiffstats
path: root/functions.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'functions.cmake')
-rw-r--r--functions.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/functions.cmake b/functions.cmake
index d1634baa5c3..1dd5edb6fb2 100644
--- a/functions.cmake
+++ b/functions.cmake
@@ -423,6 +423,14 @@ function(vespa_install_script)
endif()
endfunction()
+function(vespa_install_data)
+ if(ARGC GREATER 2)
+ install(FILES ${ARGV0} RENAME ${ARGV1} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ DESTINATION ${ARGV2})
+ else()
+ install(FILES ${ARGV0} PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ DESTINATION ${ARGV1})
+ endif()
+endfunction()
+
function(vespa_workaround_gcc_bug_67055 SOURCE_FILE)
if(CMAKE_COMPILER_IS_GNUCC)
execute_process(COMMAND ${CMAKE_CPP_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)