list sub-command TRANSFORM, selector AT, index: 327672 out of range
At https://codereview.qt-project.org/c/qt/qtbase/+/311114 I am trying to compress a xml file and save it as a cpp file in order to have it as a binary blob.
list(TRANSFORM qmime_db_hex PREPEND "0x")
foreach(index RANGE 0 ${qmime_db_archive_size} 12)
list(APPEND index_list ${index})
endforeach()
list(TRANSFORM qmime_db_hex PREPEND "\n " AT ${index_list})
The first list(TRANSFORM)
goes through the whole list without a problem. Specifying a list of indexes with AT
fails because the index type is not appropriate.
With the error:
CMake Error at src/corelib/CMakeLists.txt:1238 (list):
list sub-command TRANSFORM, selector AT, index: 327672 out of range
(-327672, 327671).