diff options
author | Tim Schumacher <timschumi@gmx.de> | 2023-03-19 23:25:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-20 09:33:30 +0100 |
commit | fb0fd85e97a7aa735036a050e0ba034add4b8cda (patch) | |
tree | f54032eb0b3ec227c77d9b39be59d601ff06c986 /Meta | |
parent | f7dc4396c886b19503d69b5f44992a4d0e6a2192 (diff) | |
download | serenity-fb0fd85e97a7aa735036a050e0ba034add4b8cda.zip |
Meta: Don't install CA certificates during a on-Serenity build
`SERENITYOS` is also set when compiling Lagom on SerenityOS, so we can't
just check it and expect `CMAKE_STAGING_PREFIX` to be set.
Instead, check `CMAKE_STAGING_PREFIX` directly and use that as an
indicator for whether we can install a file there.
Diffstat (limited to 'Meta')
-rw-r--r-- | Meta/CMake/ca_certificates_data.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/CMake/ca_certificates_data.cmake b/Meta/CMake/ca_certificates_data.cmake index 6265d416af..7d18641918 100644 --- a/Meta/CMake/ca_certificates_data.cmake +++ b/Meta/CMake/ca_certificates_data.cmake @@ -14,7 +14,7 @@ if (ENABLE_CACERT_DOWNLOAD) download_file("${CACERT_URL}" "${CACERT_PATH}/${CACERT_FILE}") - if (SERENITYOS) + if (NOT "${CMAKE_STAGING_PREFIX}" STREQUAL "") set(CACERT_INSTALL_PATH ${CMAKE_STAGING_PREFIX}/etc/${CACERT_INSTALL_FILE}) else() set(CACERT_INSTALL_PATH ${CMAKE_CURRENT_BINARY_DIR}/${CACERT_INSTALL_FILE}) |