Commit d7e555fc authored by Ghislain MARY's avatar Ghislain MARY

Do not use CMAKE_CACHE_ARGS option of ExternalProject_Add on CMake version lower than 2.8.4.

parent 4a9c4d81
......@@ -275,10 +275,16 @@ function(linphone_builder_add_project PROJNAME)
INSTALL_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/EP_${PROJNAME}_install.${SCRIPT_EXTENSION}
)
else("${EP_${PROJNAME}_USE_AUTOTOOLS}" STREQUAL "yes")
set(BUILD_COMMANDS
CMAKE_ARGS ${EP_${PROJNAME}_CMAKE_OPTIONS} ${EP_${PROJNAME}_LINKING_TYPE}
CMAKE_CACHE_ARGS ${LINPHONE_BUILDER_EP_ARGS}
)
if("${CMAKE_VERSION}" VERSION_GREATER "2.8.3")
set(BUILD_COMMANDS
CMAKE_ARGS ${EP_${PROJNAME}_CMAKE_OPTIONS} ${EP_${PROJNAME}_LINKING_TYPE}
CMAKE_CACHE_ARGS ${LINPHONE_BUILDER_EP_ARGS}
)
else("${CMAKE_VERSION}" VERSION_GREATER "2.8.3")
set(BUILD_COMMANDS
CMAKE_ARGS ${LINPHONE_BUILDER_EP_ARGS} ${EP_${PROJNAME}_CMAKE_OPTIONS} ${EP_${PROJNAME}_LINKING_TYPE}
)
endif("${CMAKE_VERSION}" VERSION_GREATER "2.8.3")
endif("${EP_${PROJNAME}_USE_AUTOTOOLS}" STREQUAL "yes")
if(NOT "${EP_${PROJNAME}_URL}" STREQUAL "")
......
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