Browse Source

Fix cmake script (#15309)

Fix up 138c911ef4.
adaptive-webui-19844
Chocobo1 3 years ago committed by GitHub
parent
commit
e006538514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmake/Modules/MacroQbtCommonConfig.cmake
  2. 1
      src/CMakeLists.txt

3
cmake/Modules/MacroQbtCommonConfig.cmake

@ -90,4 +90,7 @@ macro(qbt_common_config) @@ -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
src/CMakeLists.txt

@ -36,7 +36,6 @@ endmacro() @@ -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

Loading…
Cancel
Save