From ecfd9f7608a5820ae85278939e9bbaf7f1245dd6 Mon Sep 17 00:00:00 2001
From: Robert Schmidt <robert.schmidt@eurecom.fr>
Date: Tue, 24 Nov 2020 21:39:20 +0100
Subject: [PATCH] Move CMakeLists.txt into root

---
 cmake_targets/build_oai | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/cmake_targets/build_oai b/cmake_targets/build_oai
index 379c9b5cfb6..f7981650e46 100755
--- a/cmake_targets/build_oai
+++ b/cmake_targets/build_oai
@@ -537,6 +537,11 @@ function main() {
     echo_info "Erased all previously producted files"
   fi
 
+  # for historical reasons we build in a subdirectory cmake_targets/XYZ/build,
+  # e.g., cmake_targets/ran_build/build, hence the ../../..
+  CMAKE_CMD="$CMAKE_CMD ../../.."
+  echo_info "CMAKE_CMD=$CMAKE_CMD"
+
   dbin=$OPENAIR_DIR/targets/bin
   dlog=$OPENAIR_DIR/cmake_targets/log
   mkdir -p $dbin $dlog
-- 
GitLab