From 13153b836e2be35bde408af60676b0ac8d174e78 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Sun, 9 Apr 2023 03:07:43 +0200 Subject: [PATCH] cmake: fix building with recent Oidn Oidn commit a0a5cbe9c644b4bda8fae88211b065f72a68eef6 renamed version.h to config.h --- cmake/Packages/FindOidn.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Packages/FindOidn.cmake b/cmake/Packages/FindOidn.cmake index 3544698..5bf3882 100644 --- a/cmake/Packages/FindOidn.cmake +++ b/cmake/Packages/FindOidn.cmake @@ -14,10 +14,10 @@ ## limitations under the License. ## ## ======================================================================== ## -FIND_PATH(OIDN_INCLUDE_PATH NAMES OpenImageDenoise/version.h PATHS +FIND_PATH(OIDN_INCLUDE_PATH NAMES OpenImageDenoise/config.h PATHS ${OIDN_ROOT}/include) IF (NOT OIDN_INCLUDE_PATH) - FIND_PATH(OIDN_INCLUDE_PATH NAMES OpenImageDenoise/version.h PATHS + FIND_PATH(OIDN_INCLUDE_PATH NAMES OpenImageDenoise/config.h PATHS /usr/include /usr/local/include /opt/local/include)