-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
guard hack to only apply to py-opencv
- Loading branch information
1 parent
1043d03
commit 1a7e2d5
Showing
3 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
recipe/patches_opencv/0006-include-OpenCVModule.cmake.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
From 582ae4068d357c3d181b058557130f45baa6557d Mon Sep 17 00:00:00 2001 | ||
From 860d6d249fca7b0c9888da90b70b2328fa418f83 Mon Sep 17 00:00:00 2001 | ||
From: "H. Vetinari" <[email protected]> | ||
Date: Mon, 26 Jun 2023 20:15:31 +1100 | ||
Subject: [PATCH 6/6] include OpenCVModule.cmake | ||
|
||
--- | ||
modules/python/bindings/CMakeLists.txt | 1 + | ||
1 file changed, 1 insertion(+) | ||
modules/python/bindings/CMakeLists.txt | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/modules/python/bindings/CMakeLists.txt b/modules/python/bindings/CMakeLists.txt | ||
index b39c679615..6933a4c031 100644 | ||
index b39c679615..6396374d20 100644 | ||
--- a/modules/python/bindings/CMakeLists.txt | ||
+++ b/modules/python/bindings/CMakeLists.txt | ||
@@ -1,3 +1,4 @@ | ||
+include($ENV{SRC_DIR}/cmake/OpenCVModule.cmake) | ||
@@ -1,3 +1,6 @@ | ||
+if(DEFINED MY_SUPER_SECRET_VARIABLE) | ||
+ include($ENV{SRC_DIR}/cmake/OpenCVModule.cmake) | ||
+endif() | ||
set(MODULE_NAME "python_bindings_generator") | ||
set(OPENCV_MODULE_IS_PART_OF_WORLD FALSE) | ||
ocv_add_module(${MODULE_NAME} INTERNAL) |