Quiet linker on BlueGene
authorMark Abraham <mark.j.abraham@gmail.com>
Tue, 5 Jun 2012 04:08:29 +0000 (14:08 +1000)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 15 Jun 2012 14:08:01 +0000 (00:08 +1000)
Change-Id: Ib105a93ca233c763d3b6caf3c3c636a673078986

CMakeLists.txt

index e742e1a95a2ed1fda7bbf9782c0eed4172fe0b0a..e82df62c44bbf1003c0e63487f06124ff1ba9bea 100644 (file)
@@ -639,6 +639,10 @@ elseif(${GMX_ACCELERATION} STREQUAL "BLUEGENE")
     set(GMX_X11 OFF CACHE BOOL "X11 not compatible with BlueGene, disabled!" FORCE)
     set(GMX_THREADS OFF CACHE BOOL "Threads not compatible with BlueGene, disabled!" FORCE)
     set(GMX_MPI ON CACHE BOOL "Use MPI on BlueGene" FORCE)
+# Access to /etc/passwd is not available on the back end of BlueGene,
+# despite being detected by CMake. This can cause linker warnings
+# about harmless things in src/gmxlib/string2.h.
+    set(HAVE_PWD_H OFF)
 # The automatic testing for endianness does not work for the BlueGene cross-compiler
     set(GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER 1 CACHE INTERNAL "BlueGene has big endian FP byte order (by default)" FORCE)
     set(GMX_IEEE754_BIG_ENDIAN_WORD_ORDER 1 CACHE INTERNAL "BlueGene has big endian FP word order (by default)" FORCE)