Browse Source

CMake fix for Clang 3.8 on OSX

For whatever cmake reason we need to call cmake_minimum_version before
project() when dealing with non-apple clang on OSX.
Tobias Hieta 8 years ago
parent
commit
81924d2e89
1 changed files with 3 additions and 3 deletions
  1. 3 3
      CMakeLists.txt

+ 3 - 3
CMakeLists.txt

@@ -1,11 +1,11 @@
-project(PlexMediaPlayer CXX C)
 cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
+project(PlexMediaPlayer CXX C)
 
 cmake_policy(SET CMP0020 NEW)
+cmake_policy(SET CMP0017 NEW)
 if (POLICY CMP0058)
-cmake_policy(SET CMP0058 NEW)
+  cmake_policy(SET CMP0058 NEW)
 endif()
-cmake_policy(SET CMP0017 NEW)
 
 option(OPENELEC "Make an OpenELEC build" OFF)