Skip to content

Commit

Permalink
Set CMP0074 such that people who set Boost_ROOT won't get warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Nov 8, 2019
1 parent 28d1cb2 commit 8ec1440
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions IlmBase/CMakeLists.txt
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions OpenEXR/CMakeLists.txt
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions OpenEXR_Viewers/CMakeLists.txt
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions PyIlmBase/CMakeLists.txt
Expand Up @@ -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)
Expand Down

0 comments on commit 8ec1440

Please sign in to comment.