<div dir="ltr">Please ignore this patch - just realized that NO_ATOMICS also got incorrectly pulled in. Sending a fixed patch.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Pradeep Ramachandran, PhD<div>Solution Architect,</div><div>Multicoreware Inc.</div><div>Ph:   +91 99627 82018</div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Fri, Aug 21, 2015 at 7:16 PM, Pradeep Ramachandran <span dir="ltr"><<a href="mailto:pradeep@multicorewareinc.com" target="_blank">pradeep@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Pradeep Ramachandran <<a href="mailto:pradeep@multicorewareinc.com">pradeep@multicorewareinc.com</a>><br>
# Date 1440164786 14400<br>
#      Fri Aug 21 09:46:26 2015 -0400<br>
# Node ID 8ef6b4bf6865d0eb2d3b5eb4d988f62487403ac3<br>
# Parent  f63273fa3137fef2f6898c686b68ee12608acd31<br>
Enabling the option to compile without libNUMA support in Linux.<br>
<br>
Need to find a good way to do this for Windows builds<br>
<br>
diff -r f63273fa3137 -r 8ef6b4bf6865 source/CMakeLists.txt<br>
--- a/source/CMakeLists.txt     Thu Aug 20 11:13:25 2015 +0530<br>
+++ b/source/CMakeLists.txt     Fri Aug 21 09:46:26 2015 -0400<br>
@@ -75,23 +75,26 @@<br>
     if(LIBDL)<br>
         list(APPEND PLATFORM_LIBS dl)<br>
     endif()<br>
-    find_package(Numa)<br>
-    if(NUMA_FOUND)<br>
-        link_directories(${NUMA_LIBRARY_DIR})<br>
-        list(APPEND CMAKE_REQUIRED_LIBRARIES numa)<br>
-        check_symbol_exists(numa_node_of_cpu numa.h NUMA_V2)<br>
-        if(NUMA_V2)<br>
-            add_definitions(-DHAVE_LIBNUMA)<br>
-            message(STATUS "libnuma found, building with support for NUMA nodes")<br>
-            list(APPEND PLATFORM_LIBS numa)<br>
-            include_directories(${NUMA_INCLUDE_DIR})<br>
+    option(ENABLE_LIBNUMA "Enable libnuma usage (Linux only)" ON)<br>
+    if(ENABLE_LIBNUMA)<br>
+        find_package(Numa)<br>
+        if(NUMA_FOUND)<br>
+            link_directories(${NUMA_LIBRARY_DIR})<br>
+            list(APPEND CMAKE_REQUIRED_LIBRARIES numa)<br>
+            check_symbol_exists(numa_node_of_cpu numa.h NUMA_V2)<br>
+            if(NUMA_V2)<br>
+                add_definitions(-DHAVE_LIBNUMA)<br>
+                message(STATUS "libnuma found, building with support for NUMA nodes")<br>
+                list(APPEND PLATFORM_LIBS numa)<br>
+                include_directories(${NUMA_INCLUDE_DIR})<br>
+            endif()<br>
         endif()<br>
-    endif()<br>
-    mark_as_advanced(LIBRT NUMA_FOUND)<br>
-    option(NO_ATOMICS "Use a slow mutex to replace atomics" OFF)<br>
-    if(NO_ATOMICS)<br>
-        add_definitions(-DNO_ATOMICS=1)<br>
-    endif(NO_ATOMICS)<br>
+        mark_as_advanced(LIBRT NUMA_FOUND)<br>
+        option(NO_ATOMICS "Use a slow mutex to replace atomics" OFF)<br>
+        if(NO_ATOMICS)<br>
+            add_definitions(-DNO_ATOMICS=1)<br>
+        endif(NO_ATOMICS)<br>
+    endif(ENABLE_LIBNUMA)<br>
 endif(UNIX)<br>
<br>
 if(X64 AND NOT WIN32)<br>
</blockquote></div><br></div>