Skip to content

Commit 0e611f5

Browse files
PatTheMavRytoEX
authored andcommitted
cmake: Update library and target names for qrcodegen
qrcodegen is identified as such (without the "lib" prefix) and as the target "qrcodegencpp::qrcodegencpp" by the CMake package generated by obs-deps.
1 parent ec2cdc8 commit 0e611f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ find_qt(COMPONENTS Core Widgets Svg Network)
1818
find_package(nlohmann_json 3 REQUIRED)
1919

2020
# Find qrcodegencpp
21-
find_package(Libqrcodegencpp REQUIRED)
21+
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG ON)
22+
find_package(qrcodegencpp REQUIRED)
23+
set(CMAKE_FIND_PACKAGE_PREFER_CONFIG OFF)
2224

2325
# Find WebSocket++
2426
find_package(Websocketpp 0.8 REQUIRED)
@@ -151,7 +153,7 @@ target_link_libraries(
151153
nlohmann_json::nlohmann_json
152154
Websocketpp::Websocketpp
153155
Asio::Asio
154-
Libqrcodegencpp::Libqrcodegencpp)
156+
qrcodegencpp::qrcodegencpp)
155157

156158
set_target_properties_obs(
157159
obs-websocket

0 commit comments

Comments
 (0)