Cmake : allow to use a toolchain cmake file if any

This allows a bit painless dev env on Embedded version.
This commit is contained in:
longchair 2016-04-19 19:54:30 +02:00 committed by Lionel CHAZALLON
parent cbdf346101
commit d25d77797f

View File

@ -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