Browse Source

Cmake : allow to use a toolchain cmake file if any

This allows a bit painless dev env on Embedded version.
longchair 8 years ago
parent
commit
d25d77797f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      CMakeLists.txt

+ 6 - 0
CMakeLists.txt

@@ -1,4 +1,10 @@
 cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR)
+
+# use a toolchain file if any for Embedded
+if (EXISTS "${CMAKE_SOURCE_DIR}/toolchain.cmake")
+  set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/toolchain.cmake")
+endif()
+
 project(PlexMediaPlayer CXX C)
 
 # we want this to be able to run clang-tidy