Commit c3d7345b authored by Ghislain MARY's avatar Ghislain MARY

Add postinstall step only if the postinstall.cmake file is present.

parent 28b08c2b
......@@ -545,14 +545,16 @@ function(linphone_builder_add_project PROJNAME)
if(MSVC)
if("${EP_${PROJNAME}_BUILD_METHOD}" STREQUAL "autotools")
ExternalProject_Add_Step(EP_${PROJNAME} postinstall
COMMAND ${CMAKE_COMMAND} -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -DINSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} -P ${CMAKE_CURRENT_SOURCE_DIR}/builders/${PROJNAME}/postinstall.cmake
COMMENT "Performing post-installation step"
DEPENDEES mkdir update patch download configure build install
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/builders/${PROJNAME}/postinstall.cmake)
ExternalProject_Add_Step(EP_${PROJNAME} postinstall
COMMAND ${CMAKE_COMMAND} -DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -DINSTALL_PREFIX=${CMAKE_INSTALL_PREFIX} -P ${CMAKE_CURRENT_SOURCE_DIR}/builders/${PROJNAME}/postinstall.cmake
COMMENT "Performing post-installation step"
DEPENDEES mkdir update patch download configure build install
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)
endif()
endif()
endif(MSVC)
endif()
endfunction(linphone_builder_add_project)
function(linphone_builder_add_external_projects)
......
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