Skip to content

Commit

Permalink
Enable policy 77 if possible. (#961)
Browse files Browse the repository at this point in the history
When using OpenEXR as a submodule, you currently can't set a variable
outside of it as the option will override it (so you need to set the
option.) With policy 77 in place, this works as expected.

Signed-off-by: Matthäus G. Chajdas <[email protected]>
  • Loading branch information
Anteru authored Mar 14, 2021
1 parent 7e41691 commit cf89749
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ if(POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()

if(POLICY CMP0077)
# enable variables set outside to override options
cmake_policy(SET CMP0077 NEW)
endif()

#######################################
# Create project and include cmake
# configuration files
Expand Down

0 comments on commit cf89749

Please sign in to comment.