mirror of
https://github.com/transmission/transmission.git
synced 2026-04-19 00:12:26 +01:00
* Revert "build(cmake): support building with (almost) all system 3rd-party libraries (#7554)"
This reverts commit a89ca4f2c9.
* fixup! refactor: use a map of getters, setters for `session_get` and `session_set` properties (#8024)
fix: capture-by-reference error in session_accessors()
* fix: 'Qt depends on a UTF-8 locale' CI warning
* fix: 'qt.qpa.xcb: could not connect to display' CI error
22 lines
614 B
CMake
22 lines
614 B
CMake
add_library(WideInteger::WideInteger INTERFACE IMPORTED)
|
|
|
|
target_include_directories(WideInteger::WideInteger
|
|
INTERFACE
|
|
${TR_THIRD_PARTY_SOURCE_DIR}/wide-integer)
|
|
|
|
set(_INT128_TEST_FILE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CheckInt128.c)
|
|
file(WRITE ${_INT128_TEST_FILE}
|
|
"int main()
|
|
{
|
|
unsigned __int128 u;
|
|
signed __int128 i;
|
|
return 0;
|
|
}")
|
|
try_compile(_HAVE_INT128
|
|
${CMAKE_BINARY_DIR}
|
|
${_INT128_TEST_FILE})
|
|
target_compile_definitions(WideInteger::WideInteger
|
|
INTERFACE
|
|
$<$<BOOL:${_HAVE_INT128}>:WIDE_INTEGER_HAS_LIMB_TYPE_UINT64>
|
|
)
|