diff --git a/cmake/OpenEXRSetup.cmake b/cmake/OpenEXRSetup.cmake index 0f7aa5805..13506aef9 100644 --- a/cmake/OpenEXRSetup.cmake +++ b/cmake/OpenEXRSetup.cmake @@ -311,10 +311,9 @@ FetchContent_Declare( GIT_TAG feature/install-fix-openexr ) -set(OJPH_BUILD_TESTS OFF) -set(OJPH_ENABLE_TIFF_SUPPORT OFF) -set(OJPH_BUILD_EXECUTABLES OFF) -set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) +set(OJPH_BUILD_TESTS OFF CACHE BOOL "" FORCE) +set(OJPH_ENABLE_TIFF_SUPPORT OFF CACHE BOOL "" FORCE) +set(OJPH_BUILD_EXECUTABLES OFF CACHE BOOL "" FORCE) FetchContent_MakeAvailable(openjph) install( TARGETS openjph