libplatsupport,CMake: Check platsupport helpers This commit adds a check to see if the path to the helpers is not NULL/empty before including the helpers. As the comment in the commit mentions, this is a hack to allow builds to be green before a more suitable fix can be made to the older projects.
diff --git a/libplatsupport/CMakeLists.txt b/libplatsupport/CMakeLists.txt index f1520fc..646b0fb 100644 --- a/libplatsupport/CMakeLists.txt +++ b/libplatsupport/CMakeLists.txt
@@ -14,7 +14,13 @@ project(libplatsupport C) -include(${PLATSUPPORT_HELPERS}) +# HACK: This is a stop-gap measure for now to allow projects that don't +# use the CMake modules feature of our build system to build properly. +# Some projects in particular that need to be fixed: +# - rumprun-sel4-demoapps +if(NOT ${PLATSUPPORT_HELPERS} STREQUAL "") + include(${PLATSUPPORT_HELPERS}) +endif() set(configure_string "")