Skip to content

Commit

Permalink
Fix #457, (unused) policy tag only in 3.13+ of cmake, no longer needed
Browse files Browse the repository at this point in the history
Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
  • Loading branch information
kdt3rd committed Jul 20, 2019
1 parent 04e2158 commit e69dc21
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
3 changes: 0 additions & 3 deletions IlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# "More Modern" CMake version
cmake_minimum_required(VERSION 3.12)

# this is for target_sources, new policy converts relative paths to absolute
cmake_policy(SET CMP0076 NEW)

# we include this first to parse configure.ac and extract the version
# numbers
include(config/ParseConfigure.cmake)
Expand Down
3 changes: 0 additions & 3 deletions OpenEXR/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# "More Modern" CMake version
cmake_minimum_required(VERSION 3.12)

# this is for target_sources, new policy converts relative paths to absolute
cmake_policy(SET CMP0076 NEW)

# we include this first to parse configure.ac and extract the version
# numbers
include(config/ParseConfigure.cmake)
Expand Down
16 changes: 13 additions & 3 deletions OpenEXR_Viewers/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# "More Modern" CMake version
cmake_minimum_required(VERSION 3.12)

# this is for target_sources, new policy converts relative paths to absolute
cmake_policy(SET CMP0076 NEW)

set(OPENEXR_VIEWERS_VERSION 2.3.0)

project(OpenEXR_Viewers VERSION ${OPENEXR_VIEWERS_VERSION})
Expand Down Expand Up @@ -32,6 +29,19 @@ ENDIF()

PROJECT (openexr_viewers VERSION ${OPENEXR_VERSION})

if(OPENEXR_BUILD_VIEWERS)
message(WARNING "Viewers are currently out of order. Building anyway")
SET (FLTK_SKIP_FLUID 1)
find_package(FLTK)
if(NOT FLTK_FOUND)
message(WARNING "FLTK not found, exrdisplay will not be built")
endif()
find_package(OpenGL)
if(NOT OpenGL_FOUND)
message(WARNING "OpenGL not found, exrdisplay will not be built")
endif()
endif()

IF(OPENEXR_VIEWERS_STANDALONE)
INCLUDE(OpenEXRSettings)
ENDIF()
Expand Down
3 changes: 0 additions & 3 deletions PyIlmBase/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# "More Modern" CMake version
cmake_minimum_required(VERSION 3.12)

# this is for target_sources, new policy converts relative paths to absolute
cmake_policy(SET CMP0076 NEW)

# we include this first to parse configure.ac and extract the version
# numbers
include(config/ParseConfigure.cmake)
Expand Down

0 comments on commit e69dc21

Please sign in to comment.