Commit f89f58a0 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Do not install windows tools if they are already installed.

parent 29d2b028
......@@ -72,12 +72,13 @@ if(MSVC)
endif()
if(WIN32)
message(STATUS "Installing windows tools")
set(_windows_tools_dir ${CMAKE_CURRENT_BINARY_DIR}/windows_tools)
set(_windows_tools_dir ${CMAKE_BINARY_DIR}/windows_tools)
file(MAKE_DIRECTORY ${_windows_tools_dir})
file(DOWNLOAD https://www.linphone.org/files/linphone_builder_windows_tools.zip "${CMAKE_CURRENT_BINARY_DIR}/linphone_builder_windows_tools.zip")
if(NOT EXISTS "${CMAKE_BINARY_DIR}/linphone_builder_windows_tools.zip")
message(STATUS "Installing windows tools")
file(DOWNLOAD https://www.linphone.org/files/linphone_builder_windows_tools.zip "${CMAKE_BINARY_DIR}/linphone_builder_windows_tools.zip")
execute_process(
COMMAND "${CMAKE_COMMAND}" "-E" "tar" "x" "${CMAKE_CURRENT_BINARY_DIR}/linphone_builder_windows_tools.zip"
COMMAND "${CMAKE_COMMAND}" "-E" "tar" "x" "${CMAKE_BINARY_DIR}/linphone_builder_windows_tools.zip"
WORKING_DIRECTORY ${_windows_tools_dir}
)
file(MAKE_DIRECTORY "${LINPHONE_BUILDER_WORK_DIR}/windows_tools")
......@@ -90,7 +91,7 @@ if(WIN32)
else()
file(RENAME "${_windows_tools_dir}/yasm-1.3.0-win32.exe" "C:/MinGW/bin/yasm.exe")
endif()
unset(_pkg_config_dir)
endif()
endif()
find_program(PATCH_PROGRAM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment