Skip to content

Commit

Permalink
Fix cmake script (qbittorrent#15309)
Browse files Browse the repository at this point in the history
Fix up 138c911.
  • Loading branch information
Chocobo1 committed Aug 11, 2021
1 parent b737ee0 commit e006538
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cmake/Modules/MacroQbtCommonConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,7 @@ macro(qbt_common_config)
)
endif()

if (LibtorrentRasterbar_VERSION VERSION_GREATER_EQUAL ${minLibtorrentVersion})
target_compile_definitions(qbt_common_cfg INTERFACE QBT_USES_LIBTORRENT2)
endif()
endmacro(qbt_common_config)
1 change: 0 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ endmacro()
find_libtorrent(${minLibtorrent1Version})
if (LibtorrentRasterbar_FOUND AND (LibtorrentRasterbar_VERSION VERSION_GREATER_EQUAL 2.0))
find_libtorrent(${minLibtorrentVersion})
target_compile_definitions(qbt_common_cfg PUBLIC QBT_USES_LIBTORRENT2)
endif()

# force variable type so that it always shows up in ccmake/cmake-gui frontends
Expand Down

0 comments on commit e006538

Please sign in to comment.