]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4633: thread_config: fix numa build issue
authorDenys Zikratyi -X (dzikraty - SOFTSERVE INC at Cisco) <dzikraty@cisco.com>
Mon, 24 Feb 2025 17:28:59 +0000 (17:28 +0000)
committerPriyanka Bangalore Gurudev (prbg) <prbg@cisco.com>
Mon, 24 Feb 2025 17:28:59 +0000 (17:28 +0000)
Merge in SNORT/snort3 from ~DZIKRATY/snort3:fix_numa_build_issue to master

Squashed commit of the following:

commit c65a808e9f7ad41122b4921875d397b6dfb88adf
Author: Denys Zikratyi -X (dzikraty - SOFTSERVE INC at Cisco) <dzikraty@cisco.com>
Date:   Mon Feb 24 04:14:31 2025 -0500

    thread_config: fix numa build issue

src/main/CMakeLists.txt

index 00458609e36ba5a80326f0050e28b7143965e954..117612b94dda4e2de8a4adbe83fc2a9f2081b3c9 100644 (file)
@@ -22,6 +22,10 @@ endif ( ENABLE_SHELL )
 
 add_subdirectory(test)
 
+if ( HAVE_NUMA )
+    set ( NUMA_SOURCES numa.h numa.cc)
+endif( HAVE_NUMA )
+
 add_library (main OBJECT
     analyzer.cc
     analyzer.h
@@ -32,8 +36,6 @@ add_library (main OBJECT
     modules.h
     network_module.cc
     network_module.h
-    numa.h
-    numa.cc
     oops_handler.cc
     oops_handler.h
     policy.cc
@@ -55,6 +57,7 @@ add_library (main OBJECT
     ${INCLUDES}
     ${LOCAL_INCLUDES}
     ${SHELL_SOURCES}
+    ${NUMA_SOURCES}
 )
 
 add_custom_command (