diff --git a/plugins/blockvault_client_plugin/CMakeLists.txt b/plugins/blockvault_client_plugin/CMakeLists.txt index b0823ed28a9..4ae7bfd1b0f 100644 --- a/plugins/blockvault_client_plugin/CMakeLists.txt +++ b/plugins/blockvault_client_plugin/CMakeLists.txt @@ -28,7 +28,7 @@ if (pqxx_FOUND) set(pqxx_lib PkgConfig::pqxx PkgConfig::pq) else() add_library(pqxx STATIC IMPORTED) - set_property(TARGET pqxx PROPERTY IMPORTED_LOCATION ${pqxx_STATIC_LIBRARY_DIRS}/libpqxx.a) + set_property(TARGET pqxx PROPERTY IMPORTED_LOCATION ${pqxx_LIBDIR}/libpqxx.a) target_include_directories(pqxx INTERFACE ${pqxx_STATIC_INCLUDE_DIRS}) target_link_libraries(pqxx INTERFACE PkgConfig::pq) set(pqxx_lib pqxx)