]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not test for rand_r on cygwin platforms 837/head
authorMatthias Maier <tamiko@43-1.org>
Sun, 19 Apr 2015 17:42:54 +0000 (19:42 +0200)
committerMatthias Maier <tamiko@43-1.org>
Sun, 19 Apr 2015 17:42:54 +0000 (19:42 +0200)
cmake/checks/check_02_system_features.cmake

index 60f5b54d6e7cb56df66698c3e605f29b2aed36e7..e996bb9cafd0485ad5118d3144d39467f4e60872 100644 (file)
@@ -1,6 +1,6 @@
 ## ---------------------------------------------------------------------
 ##
-## Copyright (C) 2012 - 2014 by the deal.II authors
+## Copyright (C) 2012 - 2015 by the deal.II authors
 ##
 ## This file is part of the deal.II library.
 ##
@@ -52,7 +52,9 @@ CHECK_INCLUDE_FILE_CXX("unistd.h" DEAL_II_HAVE_UNISTD_H)
 CHECK_CXX_SYMBOL_EXISTS("gethostname" "unistd.h" DEAL_II_HAVE_GETHOSTNAME)
 CHECK_CXX_SYMBOL_EXISTS("getpid" "unistd.h" DEAL_II_HAVE_GETPID)
 
-CHECK_CXX_SYMBOL_EXISTS("rand_r" "stdlib.h" DEAL_II_HAVE_RAND_R)
+IF(NOT CMAKE_SYSTEM_NAME MATCHES "CYGWIN")
+  CHECK_CXX_SYMBOL_EXISTS("rand_r" "stdlib.h" DEAL_II_HAVE_RAND_R)
+ENDIF()
 
 #
 # Do we have the Bessel function jn?

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.