Commit 60a3f463 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Set CMake policy 0017 to old behavior.

This behavior makes includes in modules shipped with CMake still look
in the module directories defined by the project.  The change does not
effect building IceT on its own.  (At least, there are currently no
modules included that are also included with CMake.)  However, this is
currently necessary to prevent warnings in ParaView.
parent ed022ffc
......@@ -5,9 +5,17 @@
## This source code is released under the New BSD License.
#
PROJECT(ICET C)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
# Turn off policy 0017, which makes modules packaged with CMake find
# any module rather than just others packaged with CMake. This is
# necessary for backward compatibility when included from ParaView.
IF (POLICY CMP0017)
CMAKE_POLICY(SET CMP0017 OLD)
ENDIF (POLICY CMP0017)
PROJECT(ICET C)
# Set the current IceT version.
SET(ICET_MAJOR_VERSION 2)
SET(ICET_MINOR_VERSION 1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment