summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorHiroo Ono <hiroo.ono@gmail.com>2024-09-01 01:33:17 +0900
committerHiroo Ono <hiroo.ono@gmail.com>2024-09-01 01:33:17 +0900
commit08113620404175754e5154c90c743f3c9b1330b8 (patch)
treeb2a8b1fee846a257a59a2ba1834249bfba97bdcc /indra/cmake
parent3bba39cf3e4d56da5aba883479539ed89fa578b9 (diff)
Build private static collada-dom library for Linux and FreeBSD.
Clone the repository by git and make it a cmake submodule.
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/DepsBuild.cmake17
-rw-r--r--indra/cmake/LLPrimitive.cmake2
2 files changed, 19 insertions, 0 deletions
diff --git a/indra/cmake/DepsBuild.cmake b/indra/cmake/DepsBuild.cmake
new file mode 100644
index 0000000000..f4d80e9a67
--- /dev/null
+++ b/indra/cmake/DepsBuild.cmake
@@ -0,0 +1,17 @@
+# -*- cmake -*-
+find_program(GIT git)
+
+macro( checkout_deps_repository DEPSREPO DEPSDIR DEPSTAG)
+ execute_process(
+ COMMAND ${GIT} "clone" ${DEPSREPO} ${DEPSDIR}
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/../..
+ )
+ execute_process(
+ COMMAND ${GIT} "checkout" ${DEPSTAG}
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/../../${DEPSDIR}
+ )
+ execute_process(
+ COMMAND ${GIT} "pull"
+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/../../${DEPSDIR}
+ )
+endmacro( checkout_deps_repository )
diff --git a/indra/cmake/LLPrimitive.cmake b/indra/cmake/LLPrimitive.cmake
index 216f4d574a..6f14c04efc 100644
--- a/indra/cmake/LLPrimitive.cmake
+++ b/indra/cmake/LLPrimitive.cmake
@@ -19,6 +19,7 @@ if( USE_CONAN )
endif()
if(LINUX OR CMAKE_SYSTEM_NAME MATCHES FreeBSD )
+if(FALSE)
include(FindPkgConfig)
pkg_check_modules(Colladadom REQUIRED collada-dom)
target_compile_definitions( ll::colladadom INTERFACE COLLADA_DOM_SUPPORT141 )
@@ -26,6 +27,7 @@ if(LINUX OR CMAKE_SYSTEM_NAME MATCHES FreeBSD )
target_link_directories( ll::colladadom INTERFACE ${Colladadom_LIBRARY_DIRS} )
target_link_libraries( ll::colladadom INTERFACE ${Colladadom_LIBRARIES} )
return ()
+endif(FALSE)
endif(LINUX OR CMAKE_SYSTEM_NAME MATCHES FreeBSD )
if( USESYSTEMLIBS )