summaryrefslogtreecommitdiff
path: root/indra/cmake/Prebuilt.cmake
diff options
context:
space:
mode:
authorHiroo Ono <hiroo.ono@gmail.com>2024-09-01 21:17:05 +0900
committerHiroo Ono <hiroo.ono@gmail.com>2024-09-01 21:17:05 +0900
commitea9ff01bbc249751f7366607d796353784daaf69 (patch)
tree3051e8c5fe54404e26f9b1e683a68661a76bcbc0 /indra/cmake/Prebuilt.cmake
parent08113620404175754e5154c90c743f3c9b1330b8 (diff)
Build and link collada-dom v2.3-r7 taken from Linden Lab's 3rd party software
repository.
Diffstat (limited to 'indra/cmake/Prebuilt.cmake')
-rw-r--r--indra/cmake/Prebuilt.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/cmake/Prebuilt.cmake b/indra/cmake/Prebuilt.cmake
index 8d911b339c..4034599fde 100644
--- a/indra/cmake/Prebuilt.cmake
+++ b/indra/cmake/Prebuilt.cmake
@@ -119,3 +119,14 @@ macro ( use_system_binary package )
endif()
endmacro()
+find_package(Patch)
+
+# Download the third party software archive and patch it.
+macro(prepare_thirdparty url filename dirname patch hash)
+ file(DOWNLOAD ${url} ${filename} EXPECTED_HASH SHA512=${hash})
+ file(ARCHIVE_EXTRACT INPUT ${filename}
+ DESTINATION ${CMAKE_SOURCE_DIR}/../..)
+ execute_process(COMMAND ${Patch_EXECUTABLE} "-p1" "-i"
+ ${CMAKE_SOURCE_DIR}/../patches/${patch}
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/../../${dirname})
+endmacro()