diff options
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/DepsBuild.cmake | 17 | ||||
-rw-r--r-- | indra/cmake/LLPrimitive.cmake | 2 |
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 ) |