Commit ba9ecc7b authored by Ghislain MARY's avatar Ghislain MARY

Use batch files when building on Windows, not only with MSVC.

parent 3dff22c0
......@@ -333,7 +333,7 @@ function(linphone_builder_add_project PROJNAME)
set(ep_install_target "${EP_${PROJNAME}_INSTALL_TARGET}")
endif("${EP_${PROJNAME}_INSTALL_TARGET}" STREQUAL "")
if(MSVC)
if(WIN32)
set(SCRIPT_EXTENSION bat)
set(MSVC_PROJNAME ${PROJNAME})
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/mingw_configure.bat.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_configure.bat)
......@@ -342,9 +342,9 @@ function(linphone_builder_add_project PROJNAME)
# Build in source with MinGW as build out-of-source does not work
set(ep_build ${ep_source})
set(ep_redirect_to_file "2>&1 >> ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}.log")
else(MSVC)
else()
set(SCRIPT_EXTENSION sh)
endif(MSVC)
endif()
if("${EP_${PROJNAME}_PKG_CONFIG}" STREQUAL "")
set(LINPHONE_BUILDER_PKG_CONFIG "pkg-config")
......
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