[CDRIVER-2677] Log a less scary message if ICU isn't found and ENABLE_ICU=AUTO Created: 01/Jun/18  Updated: 28/Oct/23  Resolved: 01/Jun/18

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.11.0

Type: Improvement Priority: Minor - P4
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

If ENABLE_ICU=AUTO and find_package(ICU) fails to find ICU installed it gives it logs the following:

-- The following ICU libraries were not found:
--   uc (required)
-- Failed to find all ICU components (missing: ICU_INCLUDE_DIR ICU_LIBRARY _ICU_REQUIRED_LIBS_FOUND) 

But no fatal error occurs because ICU is optional, and is only needed for SASLPrep. The log output suggests something went wrong when it really didn't. Instead, let's suppress this log output and print something like:

ICU not found, SASLPrep disabled for SCRAM-SHA-256 authentication



 Comments   
Comment by Githook User [ 01/Jun/18 ]

Author:

{'username': 'kevinAlbs', 'name': 'Kevin Albertson', 'email': 'kevin.albertson@10gen.com'}

Message: CDRIVER-2677 better ICU cmake messages
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/3a2990efc28d858e0fb29f339775fcc37300dbe4

Generated at Wed Feb 07 21:15:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.