Commit 3fe836d5 authored by barre's avatar barre
Browse files

ENH: update for CMake 2.6

git-svn-id: http://svn.slicer.org/Slicer4/trunk@6583 3bd1e089-480b-0410-8dfb-8563597acbee
parent 56fc5c3c
......@@ -9,6 +9,10 @@ if(CMAKE_COMPILER_2005)
add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
endif(CMAKE_COMPILER_2005)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
#
# avoid linker bug in Mac OS 10.5
# see:
......
......@@ -2,6 +2,10 @@ PROJECT(GenerateLM)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
FIND_PACKAGE(GenerateCLP REQUIRED)
IF(GenerateCLP_FOUND)
INCLUDE(${GenerateCLP_USE_FILE})
......
project(vtkITK)
cmake_minimum_required(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
# --------------------------------------------------------------------------
# Sources
......
project(vtkTeem)
cmake_minimum_required(VERSION 2.4)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
# --------------------------------------------------------------------------
# Sources
......
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