Skip to content

fix(cmake): guard sample builds on optional module availability #5225#5226

Merged
matejk merged 1 commit intomainfrom
5225-cmake-data-samples-conditional
Feb 25, 2026
Merged

fix(cmake): guard sample builds on optional module availability #5225#5226
matejk merged 1 commit intomainfrom
5225-cmake-data-samples-conditional

Conversation

@matejk
Copy link
Contributor

@matejk matejk commented Feb 25, 2026

Summary

  • Guard Data samples behind ENABLE_DATA_SQLITE since all of them link Poco::DataSQLite
  • Additionally guard WebNotifier sample behind ENABLE_NET (it links both Poco::DataSQLite and Poco::Net)
  • Enable NetSSL_Win samples with a ENABLE_CRYPTO guard (they link Poco::Crypto which is not a dependency of NetSSL_Win itself)
  • Fix SevenZip samples gated by ENABLE_TESTS instead of ENABLE_SAMPLES
  • Print CMake status messages when samples are skipped due to missing dependencies

Fixes #5225

@matejk matejk merged commit 438d2d8 into main Feb 25, 2026
102 checks passed
@matejk matejk deleted the 5225-cmake-data-samples-conditional branch February 25, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building Data samples fails with CMake on Ubuntu Linux 24.04 with Poco 1.15.0 - SQLite support disabled but still required

1 participant