Skip to content

Fix the Linux offline build with pkg-config #157

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

Merged
merged 1 commit into from
May 13, 2025
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
4 changes: 2 additions & 2 deletions packages/sodium_libs/linux/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ target_include_directories(${PLUGIN_NAME} INTERFACE
"${CMAKE_CURRENT_SOURCE_DIR}/include")
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter)
target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK)
if(DEFINED ENV{LIBETEBASE_USE_PKGCONFIG})
if(DEFINED ENV{LIBSODIUM_USE_PKGCONFIG})
target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::SODIUM)
else()
target_link_libraries(${PLUGIN_NAME} PRIVATE sodium)
Expand All @@ -71,7 +71,7 @@ endif()
# List of absolute paths to libraries that should be bundled with the plugin.
# This list could contain prebuilt libraries, or libraries created by an
# external build triggered from this build file.
if(DEFINED ENV{LIBETEBASE_USE_PKGCONFIG})
if(DEFINED ENV{LIBSODIUM_USE_PKGCONFIG})
set(sodium_libs_bundled_libraries
""
PARENT_SCOPE
Expand Down
Loading