cmake: policy existence must be checked on older Cmake version...

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5439 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut 2012-10-25 18:10:28 +00:00
parent 41a5578097
commit 972aa02c11
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ cmake_minimum_required(VERSION 2.8.5)
# The NEW behavior for this policy is to ignore
# CMAKE_SHARED_LIBRARY_<Lang>_FLAGS whether it is modified or not and
# honor the POSITION_INDEPENDENT_CODE target property.
cmake_policy(SET CMP0018 OLD)
if(POLICY CMP0018)
cmake_policy(SET CMP0018 OLD)
endif()
# Variable to check that people use the good file
set(TOP_CMAKE_WAS_SOURCED TRUE)