mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-21 10:50:54 +00:00
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41967 Signed-off-by: Sam James <sam@gentoo.org>
79 lines
2.1 KiB
Diff
79 lines
2.1 KiB
Diff
From 6284e504b144619411ac41092d53fc8541c84cdb Mon Sep 17 00:00:00 2001
|
|
From: Paul Zander <negril.nx@gmail.com>
|
|
Date: Tue, 15 Apr 2025 13:48:00 +0200
|
|
Subject: [PATCH] system glog
|
|
|
|
Signed-off-by: Paul Zander <negril.nx@gmail.com>
|
|
|
|
diff --git a/extern/CMakeLists.txt b/extern/CMakeLists.txt
|
|
index 418d2255a75..6b5cd31f9b7 100644
|
|
--- a/extern/CMakeLists.txt
|
|
+++ b/extern/CMakeLists.txt
|
|
@@ -77,7 +77,9 @@ if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING))
|
|
if(NOT WITH_SYSTEM_GFLAGS)
|
|
add_subdirectory(gflags)
|
|
endif()
|
|
- add_subdirectory(glog)
|
|
+ if(NOT WITH_SYSTEM_GLOG)
|
|
+ add_subdirectory(glog)
|
|
+ endif()
|
|
endif()
|
|
|
|
if(WITH_GTESTS)
|
|
diff --git a/intern/libmv/CMakeLists.txt b/intern/libmv/CMakeLists.txt
|
|
index 965d0028020..825c2141f5a 100644
|
|
--- a/intern/libmv/CMakeLists.txt
|
|
+++ b/intern/libmv/CMakeLists.txt
|
|
@@ -34,6 +34,8 @@ if(WITH_LIBMV)
|
|
${GLOG_INCLUDE_DIRS}
|
|
../guardedalloc
|
|
)
|
|
+
|
|
+ list(REMOVE_DUPLICATES INC)
|
|
|
|
list(APPEND INC_SYS
|
|
${EIGEN3_INCLUDE_DIRS}
|
|
diff --git a/tests/gtests/testing/CMakeLists.txt b/tests/gtests/testing/CMakeLists.txt
|
|
index ff7f6905836..d46b1d65174 100644
|
|
--- a/tests/gtests/testing/CMakeLists.txt
|
|
+++ b/tests/gtests/testing/CMakeLists.txt
|
|
@@ -13,6 +13,8 @@ set(INC
|
|
${GFLAGS_INCLUDE_DIRS}
|
|
../../../extern/gtest/include
|
|
)
|
|
+
|
|
+list(REMOVE_DUPLICATES INC)
|
|
|
|
set(INC_SYS
|
|
)
|
|
--
|
|
2.49.0
|
|
|
|
From 0547b825d9ab0b7c89a41eb4000f0d2892c17d85 Mon Sep 17 00:00:00 2001
|
|
From: Paul Zander <negril.nx@gmail.com>
|
|
Date: Tue, 29 Apr 2025 18:22:53 +0200
|
|
Subject: [PATCH] fix-system-glog
|
|
|
|
Signed-off-by: Paul Zander <negril.nx@gmail.com>
|
|
|
|
diff --git a/intern/cycles/util/CMakeLists.txt b/intern/cycles/util/CMakeLists.txt
|
|
index fe28dfd66ce..03c17167269 100644
|
|
--- a/intern/cycles/util/CMakeLists.txt
|
|
+++ b/intern/cycles/util/CMakeLists.txt
|
|
@@ -130,6 +130,13 @@ if(CXX_HAS_AVX2)
|
|
set_source_files_properties(transform_avx2.cpp PROPERTIES COMPILE_FLAGS "${CYCLES_AVX2_FLAGS}")
|
|
endif()
|
|
|
|
+if(WITH_CYCLES_LOGGING)
|
|
+ list(APPEND LIB
|
|
+ ${GLOG_LIBRARIES}
|
|
+ ${GFLAGS_LIBRARIES}
|
|
+ )
|
|
+endif()
|
|
+
|
|
include_directories(${INC})
|
|
include_directories(SYSTEM ${INC_SYS})
|
|
|
|
--
|
|
2.49.0
|
|
|