From a74caa160b9645ffb203643bfe067abc23c743db Mon Sep 17 00:00:00 2001 From: Han Wang Date: Tue, 8 Oct 2024 19:49:07 -0700 Subject: [PATCH] Reorder subdirectory additions in CMakeLists.txt (#4938) Signed-off-by: Wang, Han2 --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d04760331..7ddf63af63 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -433,6 +433,10 @@ set(P4RUNTIME_STD_DIR ${p4runtime_SOURCE_DIR}/proto CACHE INTERNAL ) ########################################## P4Runtime End ########################################## +add_subdirectory (frontends) +add_subdirectory (midend) +add_subdirectory (control-plane) + file (GLOB p4c_extensions RELATIVE ${P4C_SOURCE_DIR}/extensions ${P4C_SOURCE_DIR}/extensions/*) MESSAGE ("-- Available extensions ${p4c_extensions}") foreach (ext ${p4c_extensions}) @@ -450,10 +454,6 @@ foreach (ext ${p4c_extensions}) endif() endforeach(ext) -add_subdirectory (frontends) -add_subdirectory (midend) -add_subdirectory (control-plane) - # With the current implementation of ir-generator, all targets share the # same ir-generated.h and ir-generated.cpp file, which means all targets # share the same set of IR classes (frontend and backend). Backends such as the DPDK backend