summaryrefslogtreecommitdiff
path: root/indra/cmake/BuildPackagesInfo.cmake
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2016-12-06 12:22:55 -0500
committerOz Linden <oz@lindenlab.com>2016-12-06 12:22:55 -0500
commit59f2055c8d99afb1a5ff9ac998b08f0383365e00 (patch)
tree51515f9c0ff1013a9ffa60be10addc2c36a86d87 /indra/cmake/BuildPackagesInfo.cmake
parent295a4c63b4912f05a729178e8e34ba26e92ff37b (diff)
parent780120dc46e6b99135bfd68dfdc05bd3e133208c (diff)
merge changes for latest fixes from nat
Diffstat (limited to 'indra/cmake/BuildPackagesInfo.cmake')
-rw-r--r--indra/cmake/BuildPackagesInfo.cmake9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/cmake/BuildPackagesInfo.cmake b/indra/cmake/BuildPackagesInfo.cmake
index 4e9baa61fe..26ce77b803 100644
--- a/indra/cmake/BuildPackagesInfo.cmake
+++ b/indra/cmake/BuildPackagesInfo.cmake
@@ -2,9 +2,16 @@
# Construct the version and copyright information based on package data.
include(Python)
+# packages-formatter.py runs autobuild install --versions, which needs to know
+# the build_directory, which (on Windows) depends on AUTOBUILD_ADDRSIZE.
+# Within an autobuild build, AUTOBUILD_ADDRSIZE is already set. But when
+# building in an IDE, it probably isn't. Set it explicitly using
+# run_build_test.py.
add_custom_command(OUTPUT packages-info.txt
COMMENT Generating packages-info.txt for the about box
MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/../autobuild.xml
DEPENDS ${CMAKE_SOURCE_DIR}/../scripts/packages-formatter.py
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/../scripts/packages-formatter.py "${VIEWER_CHANNEL}" "${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}" > packages-info.txt
+ COMMAND ${PYTHON_EXECUTABLE}
+ ${CMAKE_SOURCE_DIR}/cmake/run_build_test.py -DAUTOBUILD_ADDRSIZE=${ADDRESS_SIZE}
+ ${CMAKE_SOURCE_DIR}/../scripts/packages-formatter.py "${VIEWER_CHANNEL}" "${VIEWER_SHORT_VERSION}.${VIEWER_VERSION_REVISION}" > packages-info.txt
)