Explorar o código

Cmake : allow to use a toolchain cmake file if any

This allows a bit painless dev env on Embedded version.
longchair %!s(int64=8) %!d(string=hai) anos
pai
achega
d25d77797f
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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