Browse Source

Use cmake_policy() in a safe way

cmake_policy() by itself raises the minimum requirement on CMake.
We want it to be optional though, so add the necessary if() around
it.
tags/v1.6.90
Pierre Ossman 8 years ago
parent
commit
4b9c1ff9a8
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      CMakeLists.txt

+ 3
- 1
CMakeLists.txt View File

@@ -3,7 +3,9 @@
#

cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0022 OLD)
if(POLICY CMP0022)
cmake_policy(SET CMP0022 OLD)
endif()

# Internal cmake modules
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules)

Loading…
Cancel
Save