I am trying to compile Open Image Denoise by running install_deps.sh which executes the following to begin compilation:
cmake_d="-D CMAKE_BUILD_TYPE=Release" cmake_d="$cmake_d -D CMAKE_INSTALL_PREFIX=$_inst" cmake_d="$cmake_d -D WITH_EXAMPLE=OFF" cmake_d="$cmake_d -D WITH_TEST=OFF" cmake_d="$cmake_d -D OIDN_STATIC_LIB=ON" cmake $cmake_d ../ make -j$THREADS && make install make clean
but CMakes throws the following error:
Unpacking OpenImageDenoise-1.1.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at CMakeLists.txt:35 (if): if given arguments: "3.5.1" "VERSION_GREATER_EQUAL" "3.13.0" Unknown arguments specified
The error seems to be saying that
VERSION_GREATER_EQUAL does not exist. Additionally, despite the fact that my CMake version is 3.10.x, OIDN thinks that I have CMake 3.5.1 installed. Anyways, I tried compiling OIDN using CMake 3.16.4, CMake 3.12.4 and CMake 3.5.1 but I still get same error. Can someone tell me what I’m doing wrong here?
Note that this is happening is despite the fact that I’ve been compiling Open Image Denoise from about past 6 months ago for Blender until 3 months ago without any issues. So it is likely that something has changed within the past 3 months or so. Would appreciate if someone can tell me what I should do to fix this.