Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Update library and target names for qrcodegen #1169

Merged
merged 1 commit into from
Sep 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions cmake/legacy.cmake
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 @@ -138,7 +140,7 @@ target_link_libraries(
nlohmann_json::nlohmann_json
Websocketpp::Websocketpp
Asio::Asio
Libqrcodegencpp::Libqrcodegencpp)
qrcodegencpp::qrcodegencpp)

target_compile_features(obs-websocket PRIVATE cxx_std_17)

Expand Down
Loading