Skip to content

Commit

Permalink
Fix building with new version string code and new libpqxx
Browse files Browse the repository at this point in the history
  • Loading branch information
mhekkel committed Aug 15, 2023
1 parent f340e46 commit 7f508b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,8 @@ find_package(zeep 6.0.4 REQUIRED)
find_package(cifpp 5.1.1 REQUIRED)
find_package(libmcfp REQUIRED)

# For the web interface
pkg_check_modules(PQ libpq REQUIRED IMPORTED_TARGET)
pkg_check_modules(PQXX libpqxx>=7.2 REQUIRED IMPORTED_TARGET)
find_package(libpqxx 7.8 REQUIRED)

pkg_check_modules(SSL libssl IMPORTED_TARGET)
pkg_check_modules(CRYPTO libcrypto IMPORTED_TARGET)

Expand Down Expand Up @@ -176,10 +175,8 @@ target_link_libraries(alphafill
libmcfp::libmcfp
cifpp::cifpp
zeep::zeep
PkgConfig::PQXX
PkgConfig::PQ
PkgConfig::SSL
PkgConfig::CRYPTO
libpqxx::pqxx
PkgConfig::SSL PkgConfig::CRYPTO
std::filesystem)

if(USE_RSRC)
Expand Down
2 changes: 1 addition & 1 deletion src/alphafill.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ zeep::json::element alphafill(cif::datablock &db, const std::vector<PAE_matrix>
{ "pdbx_ordinal", software.size() + 1 }, // TODO: should we check this ordinal number???
{ "name", "alphafill" },
{ "version", kVersionNumber },
{ "date", kBuildDate },
{ "date", kRevisionDate },
{ "classification", "model annotation" } });

return result;
Expand Down

0 comments on commit 7f508b4

Please sign in to comment.