diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ca8ebaab1..37fbf17442 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,10 @@ else() cmake_minimum_required(VERSION 3.10) endif() +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + # Hint: This can be set to enable custom find_package # search paths, probably best to set it when configuring # on the command line to cmake instead of setting it diff --git a/IlmBase/CMakeLists.txt b/IlmBase/CMakeLists.txt index 17651781e8..759f359ab0 100644 --- a/IlmBase/CMakeLists.txt +++ b/IlmBase/CMakeLists.txt @@ -12,6 +12,10 @@ else() cmake_minimum_required(VERSION 3.10) endif() +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + # we include this first to parse configure.ac and extract the version # numbers include(config/ParseConfigure.cmake) diff --git a/OpenEXR/CMakeLists.txt b/OpenEXR/CMakeLists.txt index 95034f1dab..f25a191ed3 100644 --- a/OpenEXR/CMakeLists.txt +++ b/OpenEXR/CMakeLists.txt @@ -12,6 +12,10 @@ else() cmake_minimum_required(VERSION 3.10) endif() +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + # we include this first to parse configure.ac and extract the version # numbers include(config/ParseConfigure.cmake) diff --git a/OpenEXR_Viewers/CMakeLists.txt b/OpenEXR_Viewers/CMakeLists.txt index c7349d170c..5efa353c6c 100644 --- a/OpenEXR_Viewers/CMakeLists.txt +++ b/OpenEXR_Viewers/CMakeLists.txt @@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 3.10) +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + # we include this first to parse configure.ac and extract the version # numbers include(config/ParseConfigure.cmake) diff --git a/PyIlmBase/CMakeLists.txt b/PyIlmBase/CMakeLists.txt index e8e7b4ce47..7f12737ac6 100644 --- a/PyIlmBase/CMakeLists.txt +++ b/PyIlmBase/CMakeLists.txt @@ -5,6 +5,10 @@ # combined python 2 + 3 support cmake_minimum_required(VERSION 3.12) +if(POLICY CMP0074) + cmake_policy(SET CMP0074 NEW) +endif() + # we include this first to parse configure.ac and extract the version # numbers include(config/ParseConfigure.cmake)