mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
parent
b737ee0240
commit
e006538514
2 changed files with 3 additions and 1 deletions
|
@ -90,4 +90,7 @@ macro(qbt_common_config)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (LibtorrentRasterbar_VERSION VERSION_GREATER_EQUAL ${minLibtorrentVersion})
|
||||||
|
target_compile_definitions(qbt_common_cfg INTERFACE QBT_USES_LIBTORRENT2)
|
||||||
|
endif()
|
||||||
endmacro(qbt_common_config)
|
endmacro(qbt_common_config)
|
||||||
|
|
|
@ -36,7 +36,6 @@ endmacro()
|
||||||
find_libtorrent(${minLibtorrent1Version})
|
find_libtorrent(${minLibtorrent1Version})
|
||||||
if (LibtorrentRasterbar_FOUND AND (LibtorrentRasterbar_VERSION VERSION_GREATER_EQUAL 2.0))
|
if (LibtorrentRasterbar_FOUND AND (LibtorrentRasterbar_VERSION VERSION_GREATER_EQUAL 2.0))
|
||||||
find_libtorrent(${minLibtorrentVersion})
|
find_libtorrent(${minLibtorrentVersion})
|
||||||
target_compile_definitions(qbt_common_cfg PUBLIC QBT_USES_LIBTORRENT2)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# force variable type so that it always shows up in ccmake/cmake-gui frontends
|
# force variable type so that it always shows up in ccmake/cmake-gui frontends
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue