Find git and depot_tools in the main file

This commit is contained in:
Axel Isouard 2017-03-12 12:16:19 +01:00
parent 987a23fcef
commit 470e444791
No known key found for this signature in database
GPG key ID: 4E64BB3EAAF31C29
2 changed files with 9 additions and 10 deletions

View file

@ -8,6 +8,15 @@ cmake_policy(SET CMP0057 NEW)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
${CMAKE_SOURCE_DIR}/CMakeModules)
find_package(Git REQUIRED)
find_package(DepotTools REQUIRED)
if (WIN32)
set(PYTHON_EXECUTABLE ${DEPOTTOOLS_PATH}/python.bat)
else (WIN32)
find_package(PythonInterp REQUIRED)
endif (WIN32)
include(FindLibraries)
include(Version)
include(Options)

View file

@ -1,15 +1,5 @@
#
# Find required packages
find_package(Git REQUIRED)
find_package(DepotTools REQUIRED)
if (WIN32)
set(PYTHON_EXECUTABLE ${DEPOTTOOLS_PATH}/python.bat)
else (WIN32)
find_package(PythonInterp REQUIRED)
endif (WIN32)
list(APPEND LIBWEBRTC_LIBRARIES webrtc)
if (UNIX AND NOT APPLE)