Skip to content

Commit

Permalink
cmake: Update library and target names for qrcodegen
Browse files Browse the repository at this point in the history
qrcodegen is identified as such (without the "lib" prefix) and as the
target "qrcodegencpp::qrcodegencpp" by the CMake package generated by
obs-deps.
  • Loading branch information
PatTheMav authored and RytoEX committed Sep 18, 2023
1 parent ec2cdc8 commit 0e611f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ find_qt(COMPONENTS Core Widgets Svg Network)
find_package(nlohmann_json 3 REQUIRED)

# Find qrcodegencpp
find_package(Libqrcodegencpp REQUIRED)
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
find_package(qrcodegencpp REQUIRED)
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG OFF)

# Find WebSocket++
find_package(Websocketpp 0.8 REQUIRED)
Expand Down Expand Up @@ -151,7 +153,7 @@ target_link_libraries(
nlohmann_json::nlohmann_json
Websocketpp::Websocketpp
Asio::Asio
Libqrcodegencpp::Libqrcodegencpp)
qrcodegencpp::qrcodegencpp)

set_target_properties_obs(
obs-websocket
Expand Down

0 comments on commit 0e611f5

Please sign in to comment.