diff options
author | Bryan O'Sullivan <bos@lindenlab.com> | 2008-06-02 21:14:31 +0000 |
---|---|---|
committer | Bryan O'Sullivan <bos@lindenlab.com> | 2008-06-02 21:14:31 +0000 |
commit | 9db949eec327df4173fde3de934a87bedb0db13c (patch) | |
tree | aeffa0f0e68b1d2ceb74d460cbbd22652c9cd159 /indra/cmake/Prebuilt.cmake | |
parent | 419e13d0acaabf5e1e02e9b64a07648bce822b2f (diff) |
svn merge -r88066:88786 svn+ssh://svn.lindenlab.com/svn/linden/branches/cmake-9-merge
dataserver-is-deprecated
for-fucks-sake-whats-with-these-commit-markers
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) |