Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
Alexandru Croitor ffef516884 CMake: Support cmake --install . --prefix <path> for SBOM generation
Before this change, the SBOM generation only considered the
CMAKE_INSTALL_PREFIX set at configure time for the purposes of file
checksum computation, external document lookup, and SBOM file
installation.

When cmake --install . --prefix <path> is used, the install time
CMAKE_INSTALL_PREFIX variable is overridden with the provided path,
and can be different from the configure time value.

This path was applied to the installation of regular files, libraries,
etc, but not to the SBOM generation. This caused issues like not being
able to find a library to compute its checksum.

Instead of hard-coding the value to QT_STAGING_PREFIX, just don't pass
a value at all, and rely on the new default of using an
install-time-evaluated \${CMAKE_INSTALL_PREFIX}.

Keep the ability of specifying a custom prefix just in case.

Modify all the code that used a hard-coded CMAKE_INSTALL_PREFIX to use
a install-time-evaluated one instead.

As a drive-by, also set a proper default value for the INSTALL_SBOM_DIR
option.

Pick-to: 6.8
Fixes: QTBUG-131883
Change-Id: Ifde6ab282ac40f10c5bf51976121065c7dc631eb
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2024-12-05 15:37:00 +01:00
.github/workflows Repair github action workflow 2021-11-10 18:57:33 +01:00
LICENSES Add REUSE.toml files 2024-11-05 14:36:16 +01:00
bin CMake: Don't hard-code "libexec" in qt-configure-module 2024-08-16 12:36:35 +02:00
cmake CMake: Support cmake --install . --prefix <path> for SBOM generation 2024-12-05 15:37:00 +01:00
coin Coin: Increase VxWorks stack size when testing 2024-11-12 16:31:51 +02:00
config.tests Enable broken_threadlocal_dtors for VxWorks 2024-11-05 14:36:17 +01:00
dist Add REUSE.toml files 2024-11-05 14:36:16 +01:00
doc Create qdoc macros for C++ class docs 2.1: qHash() 2024-11-27 12:39:55 +01:00
examples Removal of generic stylesheet rule for dropdown 2024-12-02 17:43:50 +01:00
lib
libexec Android: fix warnings in runner script 2024-12-03 20:18:21 +00:00
mkspecs wasm: unifiy eventdispatcher asyncify code paths 2024-12-02 19:45:18 +01:00
qmake QString: toward UTF-8 arg() support [3½/4]: port unary arg() to QAnyStringView 2024-12-03 21:24:07 +01:00
src DRY QList and QVLA operator<=>() implementation 2024-12-05 15:37:00 +01:00
tests QVarLengthArray: rework comparison operators 2024-12-05 15:37:00 +01:00
util QLocale: fix likely subtags to include und -> en_Latn_US 2024-12-05 14:42:56 +01:00
.cmake.conf CMake: Increase minimum required CMake version to 3.22 2024-12-02 16:01:44 +01:00
.gitattributes Give batch files CRLF line endings 2020-11-04 15:02:29 +00:00
.gitignore Git ignore Visual Studio CMake build directories 2023-11-24 23:42:05 +01:00
.lgtm.yml Skip LGTM analysis for the bootstrap library and tools 2020-07-16 01:04:34 +02:00
.tag
CMakeLists.txt cmake: add _extra_files IDE target from heuristics 2024-04-12 08:36:01 +08:00
REUSE.toml Add REUSE.toml files 2024-11-05 14:36:16 +01:00
config_help.txt Introduce emoji-segmenter to 3rdparty code 2024-11-18 15:52:13 +01:00
configure Do not assume FHS in scripts 2024-06-25 11:44:00 +02:00
configure.bat configure.bat: Fix errors on Windows 2024-03-05 11:56:24 +01:00
configure.cmake wasm: add configure option for asyncify JSPI 2024-12-02 19:45:19 +01:00
dependencies.yaml
licenseRule.json Include relevant Unicode Inc. copyright line in generated data files 2024-08-30 19:58:47 +02:00
qt_cmdline.cmake Introduce FFmpeg-related configure options 2024-12-03 22:52:45 +01:00