Skip to content

Add GLOG_USE_GLOG_EXPORT for glog 0.7+ compatibility#248

Closed
afrind wants to merge 1 commit intofacebook:mainfrom
afrind:export-D93321000
Closed

Add GLOG_USE_GLOG_EXPORT for glog 0.7+ compatibility#248
afrind wants to merge 1 commit intofacebook:mainfrom
afrind:export-D93321000

Conversation

@afrind
Copy link
Contributor

@afrind afrind commented Feb 14, 2026

Summary: glog 0.7+ requires the preprocessor define GLOG_USE_GLOG_EXPORT before including its headers. Add add_compile_definitions(GLOG_USE_GLOG_EXPORT) after find_package(Glog REQUIRED) in the wangle CMakeLists.txt. The define is harmless on older glog versions.

Differential Revision: D93321000

Summary: glog 0.7+ requires the preprocessor define `GLOG_USE_GLOG_EXPORT` before including its headers. Add `add_compile_definitions(GLOG_USE_GLOG_EXPORT)` after `find_package(Glog REQUIRED)` in the wangle CMakeLists.txt. The define is harmless on older glog versions.

Differential Revision: D93321000
@meta-cla meta-cla bot added the CLA Signed label Feb 14, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 14, 2026

@afrind has exported this pull request. If you are a Meta employee, you can view the originating Diff in D93321000.

@meta-codesync
Copy link

meta-codesync bot commented Feb 14, 2026

This pull request has been merged in 5082ae0.

meta-codesync bot pushed a commit to facebook/hhvm that referenced this pull request Feb 14, 2026
Summary:
X-link: facebook/wangle#248

glog 0.7+ requires the preprocessor define `GLOG_USE_GLOG_EXPORT` before including its headers. Add `add_compile_definitions(GLOG_USE_GLOG_EXPORT)` after `find_package(Glog REQUIRED)` in the wangle CMakeLists.txt. The define is harmless on older glog versions.

Reviewed By: mjoras

Differential Revision: D93321000

fbshipit-source-id: 9a4ed1a4aca2a6773eb7162c55f97c8b39517fb7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants