cmake: enable shared libraries by default on Hurd
authorPino Toscano <toscano.pino@tiscali.it>
Mon, 5 May 2014 21:01:28 +0000 (23:01 +0200)
committerPino Toscano <toscano.pino@tiscali.it>
Mon, 5 May 2014 21:04:09 +0000 (23:04 +0200)
Since the toolchain is mostly the same as used on e.g. GNU/Linux
(glibc, gcc, binutils, etc), they can be safely enabled.

Change-Id: Ic663c8c344b5dfa2910e9c30260588e1917038c1

CMakeLists.txt

index 535ec6d3a750075f01cb01dbfab42f9a41a55f78..269f7633217d4ac82e446d32a9d5641169a4afd6 100644 (file)
@@ -431,7 +431,7 @@ include(TestBigEndian)
 test_big_endian(GMX_INTEGER_BIG_ENDIAN)
 
 
-if(APPLE OR CYGWIN OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux|.*BSD")
+if(APPLE OR CYGWIN OR ${CMAKE_SYSTEM_NAME} MATCHES "Linux|.*BSD|GNU")
     # Maybe Solaris should be here? Patch this if you know!
     SET(SHARED_LIBS_DEFAULT ON)
 elseif(WIN32 OR ${CMAKE_SYSTEM_NAME} MATCHES "BlueGene")