Fix CMP0017 for cmake versions < 2.8.4

master
Lothar Braun 2012-03-12 14:48:38 +01:00
parent 4f4971f03a
commit 3e887800ae
1 changed files with 5 additions and 3 deletions

View File

@ -43,9 +43,11 @@ SUBDIRS(
)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 OLD)
cmake_policy(SET CMP0002 OLD)
cmake_policy(SET CMP0017 OLD)
cmake_policy(SET CMP0003 OLD)
cmake_policy(SET CMP0002 OLD)
if (POLICY CMP0017)
cmake_policy(SET CMP0017 OLD)
endif(POLICY CMP0017)
endif(COMMAND cmake_policy)