summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--anim-crop-tool/CMakeLists.txt4
-rw-r--r--userconfig-sthalik@Windows-GNU.cmake2
-rw-r--r--wall-tileset-tool/CMakeLists.txt4
3 files changed, 7 insertions, 3 deletions
diff --git a/anim-crop-tool/CMakeLists.txt b/anim-crop-tool/CMakeLists.txt
index 5f10df62..8dc63348 100644
--- a/anim-crop-tool/CMakeLists.txt
+++ b/anim-crop-tool/CMakeLists.txt
@@ -1,4 +1,6 @@
-find_package(OpenCV QUIET)
+if(NOT DEFINED OpenCV_FOUND)
+ find_package(OpenCV QUIET)
+endif()
if(OpenCV_FOUND)
set(self "floormat-anim-crop-tool")
diff --git a/userconfig-sthalik@Windows-GNU.cmake b/userconfig-sthalik@Windows-GNU.cmake
index 5c1b0d73..8735e5e4 100644
--- a/userconfig-sthalik@Windows-GNU.cmake
+++ b/userconfig-sthalik@Windows-GNU.cmake
@@ -61,7 +61,7 @@ function(fm-userconfig-external)
MAGNUM_BUILD_PLUGINS_STATIC ON
MAGNUM_BUILD_STATIC_UNIQUE_GLOBALS OFF
)
- set(OpenCV_DIR "" CACHE STRING "" FORCE)
+ set(OpenCV_DIR "OpenCV_DIR-NOTFOUND" CACHE STRING "" FORCE)
endif()
endfunction()
diff --git a/wall-tileset-tool/CMakeLists.txt b/wall-tileset-tool/CMakeLists.txt
index 336af25b..8d73844d 100644
--- a/wall-tileset-tool/CMakeLists.txt
+++ b/wall-tileset-tool/CMakeLists.txt
@@ -1,4 +1,6 @@
-find_package(OpenCV QUIET)
+if(NOT DEFINED OpenCV_FOUND)
+ find_package(OpenCV QUIET)
+endif()
if(OpenCV_FOUND)
set(self "floormat-wall-tileset-tool")