Merge remote-tracking branch 'origin/cleanup-cmake' into integration_2026_w07 (!3915)
Cleanup Cmake: remove some double compilation Harmonize some cmake code to avoid double compilation, notably around polar and smallblock. In develop, we just add their sources to other targets, whereas now we define STATIC libraries (further changed to shared library in !3856) to avoid double compilation. With this command line: cmake .. -GNinja -DENABLE_TESTS=ON && ninja shows that before we compile 12631 files, where after it is 12583 there is additional supporting cleanup (move code, remove headers, types, ...). there is more harmonization to do, I limited myself to some easy wins. For instance, we do the same with PDCP/SDAP, and this should be refactored into STATIC libraries as well.
This commit is contained in:
@@ -3,7 +3,7 @@ add_subdirectory(MESSAGES)
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
add_executable(f1ap_ids_test f1ap_ids_test.c f1ap_ids.c)
|
||||
target_link_libraries(f1ap_ids_test HASHTABLE minimal_lib)
|
||||
target_link_libraries(f1ap_ids_test ds minimal_lib)
|
||||
add_dependencies(tests f1ap_ids_test)
|
||||
add_test(NAME F1AP_ID_test COMMAND f1ap_ids_test)
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include "f1ap_ids.h"
|
||||
|
||||
#include <pthread.h>
|
||||
#include "common/utils/hashtable/hashtable.h"
|
||||
#include "ds/hashtable.h"
|
||||
#include "common/utils/assertions.h"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user