Commit 937d4405 authored by Ghislain MARY's avatar Ghislain MARY

Allow specifying pkg-config command per project (useful for static linking of libraries).

parent 18fd6bae
......@@ -259,6 +259,12 @@ function(linphone_builder_add_project PROJNAME)
set(SCRIPT_EXTENSION sh)
endif(MSVC)
if("${EP_${PROJNAME}_PKG_CONFIG}" STREQUAL "")
set(LINPHONE_BUILDER_PKG_CONFIG "pkg-config")
else("${EP_${PROJNAME}_PKG_CONFIG}" STREQUAL "")
set(LINPHONE_BUILDER_PKG_CONFIG "${EP_${PROJNAME}_PKG_CONFIG}")
endif("${EP_${PROJNAME}_PKG_CONFIG}" STREQUAL "")
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/configure.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_configure.sh)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/build.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_build.sh)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/install.sh.cmake ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_install.sh)
......
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