Add initial support for python bindings
[alexxy/gromacs.git] / cmake / ThreadMPI.cmake
index 76e4d37b052a50379452a570b257208026c8e2de..027eff6918746d658974f7e189db78167ca9661d 100644 (file)
@@ -65,6 +65,11 @@ ENDMACRO(TMPI_TEST_ATOMICS VARIABLE)
 try_compile(HAVE_PROCESSOR_NUMBER ${CMAKE_BINARY_DIR} "${CMAKE_SOURCE_DIR}/cmake/TestWinProcNum.c")
 
 include(FindThreads)
+
+if(CMAKE_USE_WIN32_THREADS_INIT AND NOT HAVE_PROCESSOR_NUMBER)
+    message(WARNING "Incomplete Windows Processor Group API. If you want Gromacs to be able to set thread affinity, choose a Mingw distribution with a complete API (e.g. Mingw-w64).")
+endif()
+
 if (CMAKE_USE_WIN32_THREADS_INIT AND HAVE_PROCESSOR_NUMBER)
     set(THREAD_WINDOWS 1)
     set(THREAD_LIB)