summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/os/FreeBSD.cmake20
-rw-r--r--configure.cmake4
2 files changed, 21 insertions, 3 deletions
diff --git a/cmake/os/FreeBSD.cmake b/cmake/os/FreeBSD.cmake
new file mode 100644
index 00000000000..0b958c61315
--- /dev/null
+++ b/cmake/os/FreeBSD.cmake
@@ -0,0 +1,20 @@
+
+# Copyright (C) 2010 Sun Microsystems, Inc
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+# This file includes FreeBSD specific options and quirks, related to system checks
+#Legacy option, maybe not needed anymore , taken as is from autotools build
+ADD_DEFINITIONS(-DNET_RETRY_COUNT=1000000)
+
diff --git a/configure.cmake b/configure.cmake
index 4493fd900bc..b42a92cf7c5 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -105,9 +105,7 @@ ENDIF()
#Some OS specific hacks
-IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
- ADD_DEFINITIONS(-DNET_RETRY_COUNT=1000000)
-ELSEIF(CMAKE_SYSTEM MATCHES "HP-UX" AND CMAKE_SYSTEM MATCHES "11")
+IF(CMAKE_SYSTEM MATCHES "HP-UX" AND CMAKE_SYSTEM MATCHES "11")
ADD_DEFINITIONS(-DHPUX11)
ENDIF()