summarylogtreecommitdiffstats
path: root/0001-Fix-boost-python3-and-imgui.patch
blob: 2c53446d5b5ee7e7a371e40def09e3663eaef69f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From 1331dbdb1f71a78d21ee4b114867d02ec4430eba Mon Sep 17 00:00:00 2001
From: Phillip Schichtel <phillip@schich.tel>
Date: Fri, 1 May 2026 18:07:15 +0200
Subject: [PATCH] Fix boost, python3 and imgui

---
 CMakeLists.txt     | 3 ++-
 apps/Viewer/UI.cpp | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6d8a46e..27aaf0d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -227,6 +227,7 @@ SET(Boost_EXTRA_COMPONENTS "")
 if(OpenMVS_USE_PYTHON)
 	FIND_PACKAGE(Python3 COMPONENTS Interpreter Development REQUIRED)
 	if(Python3_FOUND)
+		include_directories(${Python3_INCLUDE_DIRS})
 		LIST(APPEND OpenMVS_EXTRA_LIBS ${Python3_LIBRARIES})
 		LIST(APPEND Boost_EXTRA_COMPONENTS python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR})
 		MESSAGE(STATUS "Python ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR} found (include: ${Python3_INCLUDE_DIRS})")
@@ -235,7 +236,7 @@ if(OpenMVS_USE_PYTHON)
 	endif()
 endif()
 
-FIND_PACKAGE(Boost REQUIRED COMPONENTS iostreams program_options system serialization OPTIONAL_COMPONENTS ${Boost_EXTRA_COMPONENTS})
+FIND_PACKAGE(Boost REQUIRED COMPONENTS iostreams program_options serialization OPTIONAL_COMPONENTS ${Boost_EXTRA_COMPONENTS})
 if(Boost_FOUND)
 	ADD_DEFINITIONS(${Boost_DEFINITIONS})
 	LIST(APPEND OpenMVS_EXTRA_LIBS ${Boost_LIBRARIES})
diff --git a/apps/Viewer/UI.cpp b/apps/Viewer/UI.cpp
index 919e97b..9b402a9 100644
--- a/apps/Viewer/UI.cpp
+++ b/apps/Viewer/UI.cpp
@@ -1482,7 +1482,7 @@ void UI::ShowCameraInfoDialog(Window& window) {
 						// Highlight and make the entire row clickable by using Selectable
 						const bool isSelected(window.selectedNeighborCamera == neighbor.ID);
 						String rowLabel = String::FormatString("%u/%u##neighbor_%u", neighbor.ID, neighborImage.ID, neighbor.ID);
-						bool rowClicked = ImGui::Selectable(rowLabel.c_str(), isSelected, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowItemOverlap);
+						bool rowClicked = ImGui::Selectable(rowLabel.c_str(), isSelected, ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap);
 						// Handle row click
 						if (rowClicked) {
 							// Deselect if already selected, or select it otherwise
-- 
2.54.0