Browse Source

Set cmake_policy() to silence warning by CMake 3.x

Fixes #56
master
Timo Röhling 8 years ago
parent
commit
8c26228263
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      CMakeLists.txt

+ 5
- 0
CMakeLists.txt View File

@@ -1,4 +1,9 @@
1 1
 cmake_minimum_required(VERSION 2.4)
2
+if(COMMAND cmake_policy)
3
+    if(POLICY CMP0026)
4
+        cmake_policy(CMP0026 OLD)
5
+    endif()
6
+endif()
2 7
 project(postsrsd C)
3 8
 include(CheckIncludeFile)
4 9
 

Loading…
Cancel
Save