Commit 84697422 authored by Ghislain MARY's avatar Ghislain MARY

Also handle LINPHONE_BUILDER_TOP_DIR when not grouping projects.

parent 40bfd0f9
......@@ -399,8 +399,13 @@ function(linphone_builder_add_external_project PROJNAME)
if(LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH)
foreach(SUBDIR ${EP_${PROJNAME}_EXTERNAL_SOURCE_PATHS})
if(NOT EP_${PROJNAME}_SOURCE_DIR)
if(EXISTS "${LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH}/${SUBDIR}")
set(EP_${PROJNAME}_SOURCE_DIR "${LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH}/${SUBDIR}")
if(SUBDIR STREQUAL "<LINPHONE_BUILDER_TOP_DIR>")
set(_source_dir "${LINPHONE_BUILDER_TOP_DIR}")
else()
set(_source_dir "${LINPHONE_BUILDER_EXTERNAL_SOURCE_PATH}/${SUBDIR}")
endif()
if(EXISTS "${_source_dir}")
set(EP_${PROJNAME}_SOURCE_DIR "${_source_dir}")
endif()
endif()
endforeach()
......
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