Skip to content

Commit

Permalink
Remove test/warning about CMake version < 3.11 (AcademySoftwareFounda…
Browse files Browse the repository at this point in the history
…tion#1009)

The top-level CMakeLists.txt already requires 3.12, so the test is
unnecessary and confusing.

Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm committed May 12, 2021
1 parent 775c9e3 commit ccc7fb7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmake/OpenEXRSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,6 @@ find_package(Imath QUIET)
set(CMAKE_IGNORE_PATH)

if(NOT TARGET Imath::Imath AND NOT Imath_FOUND)
if (${CMAKE_VERSION} VERSION_LESS "3.11.0")
message(FATAL_ERROR "CMake 3.11 or newer is required for FetchContent, you must manually install Imath if you are using an earlier version of CMake")
endif()
message(STATUS "Imath was not found, installing from ${IMATH_REPO} (${IMATH_TAG})")

include(FetchContent)
Expand Down

0 comments on commit ccc7fb7

Please sign in to comment.