febuild/sys-apps/autofdo/files/02-system-glog.patch
2025-09-10 16:23:52 +02:00

51 lines
1.2 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index dc10c28..52acfb0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -20,10 +20,8 @@ endfunction()
function (build_gcov)
add_subdirectory(third_party/abseil)
- add_subdirectory(third_party/glog)
include_directories(${CMAKE_HOME_DIRECTORY}
- third_party/glog/src
third_party/abseil
third_party/perf_data_converter/src
third_party/perf_data_converter/src/quipper
@@ -32,6 +30,7 @@ function (build_gcov)
${PROJECT_BINARY_DIR}/third_party/glog
${PROJECT_BINARY_DIR}/third_party/perf_data_converter/src/quipper)
+ find_package (glog REQUIRED)
find_library (LIBELF_LIBRARIES NAMES elf REQUIRED)
find_library (LIBCRYPTO_LIBRARIES NAMES crypto REQUIRED)
@@ -90,7 +89,7 @@ function (build_gcov)
absl::flags
absl::flags_parse
create_gcov_lib
- glog
+ glog::glog
quipper_perf
)
@@ -111,7 +110,7 @@ function (build_gcov)
absl::flags
absl::flags_parse
profile_merger_lib
- glog
+ glog::glog
quipper_perf
)
@@ -130,7 +129,7 @@ function (build_gcov)
absl::flags
absl::flags_parse
dump_gcov_lib
- glog)
+ glog::glog)
endfunction()