diff options
Diffstat (limited to 'indra/cmake/Prebuilt.cmake')
-rw-r--r-- | indra/cmake/Prebuilt.cmake | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/cmake/Prebuilt.cmake b/indra/cmake/Prebuilt.cmake new file mode 100644 index 0000000000..2f4fbd05c7 --- /dev/null +++ b/indra/cmake/Prebuilt.cmake @@ -0,0 +1,17 @@ +# -*- cmake -*- + +include(Python) + +macro (use_prebuilt_library _lib) + if (NOT STANDALONE) + exec_program(${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR} + ARGS + --install-dir=${LIBS_PREBUILT_DIR} ${_lib}/${ARCH} + RETURN_VALUE _installed + ) + if (NOT _installed) + message(FATAL_ERROR + "Failed to download or unpack prebuilt ${_lib} for ${ARCH}") + endif (NOT _installed) + endif (NOT STANDALONE) +endmacro (use_prebuilt_library _lib) |