Commit ee1ee79a authored by Ghislain MARY's avatar Ghislain MARY

Fix options inclusion when the CMAKE_SOURCE_DIR is not the topdir of linphone-cmake-builder.

parent f73ad16a
......@@ -51,10 +51,10 @@ else()
# Include builder options definitions according to the targets to be built
include(CMakeDependentOption)
include(FeatureSummary)
include(${CMAKE_SOURCE_DIR}/options/common.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/../options/common.cmake)
foreach(_target ${LINPHONE_BUILDER_TARGETS})
if(EXISTS ${CMAKE_SOURCE_DIR}/options/${_target}.cmake)
include(${CMAKE_SOURCE_DIR}/options/${_target}.cmake)
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/../options/${_target}.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/../options/${_target}.cmake)
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