From: Viktor Szakats Date: Thu, 26 May 2022 15:54:20 +0000 (+0000) Subject: cmake: support adding a suffix to the OS value X-Git-Tag: curl-7_84_0~130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=435f395f3f8c11eebfcc243ca55ebcc11a19b8b8;p=thirdparty%2Fcurl.git cmake: support adding a suffix to the OS value CMake automatically uses the `CMAKE_SYSTEM_NAME` value to fill the OS string appearing in the --version output after the curl version number, for example: 'curl 7.83.1 (Windows)' This patchs adds the ability to pass a suffix that is appended to this value. It's useful to add CPU info or other platform details, for example: 'curl 7.83.1 (Windows-x64)' Closes #8919 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index ee0cce08ab..fb1b2210d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ message(STATUS "curl version=[${CURL_VERSION}]") # SET(PACKAGE_STRING "curl-") # SET(PACKAGE_BUGREPORT "a suitable curl mailing list => https://curl.se/mail/") set(OPERATING_SYSTEM "${CMAKE_SYSTEM_NAME}") -set(OS "\"${CMAKE_SYSTEM_NAME}\"") +set(OS "\"${CMAKE_SYSTEM_NAME}${CURL_OS_SUFFIX}\"") include_directories(${CURL_SOURCE_DIR}/include)