From 0a66cca3819458bb462b3fd3edb80bf025041387 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 25 Feb 2024 08:20:56 +0100 Subject: [PATCH] Fix for glog 0.7.0 --- cmake/Modules/FindGLOG.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/Modules/FindGLOG.cmake b/cmake/Modules/FindGLOG.cmake index 4805b3eaf..bef1f7b6a 100644 --- a/cmake/Modules/FindGLOG.cmake +++ b/cmake/Modules/FindGLOG.cmake @@ -179,3 +179,8 @@ if(GLOG_FOUND AND NOT TARGET Glog::glog) INTERFACE_LINK_LIBRARIES "${GLOG_LIBRARIES}" ) endif() + +# Fix for glog 0.7.0 +if(EXISTS ${GLOG_INCLUDE_DIRS}/export.h) + target_precompile_headers(Glog::glog INTERFACE ${GLOG_INCLUDE_DIRS}/export.h) +endif() \ No newline at end of file