Skip to content

Commit

Permalink
Reorder subdirectory additions in CMakeLists.txt (p4lang#4938)
Browse files Browse the repository at this point in the history
Signed-off-by: Wang, Han2 <[email protected]>
  • Loading branch information
Han Wang authored Oct 9, 2024
1 parent fbbd2f7 commit a74caa1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -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
Expand Down

0 comments on commit a74caa1

Please sign in to comment.