diff options
author | Vladislav Vaintroub <vvaintroub@pcbsd> | 2010-01-26 18:13:37 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vvaintroub@pcbsd> | 2010-01-26 18:13:37 +0100 |
commit | 0bdfa9d5eb7298e3a812ccc4b79a1b29faaf750b (patch) | |
tree | fbce5fdc5865872f58017e0fabe57b08154c80d4 | |
parent | e5154ba9c07a41b3c6ab1b6b48e7271245cc4b77 (diff) | |
download | mariadb-git-0bdfa9d5eb7298e3a812ccc4b79a1b29faaf750b.tar.gz |
Move FreeBSD specific hacks to cmake/os/FreeBSD.cmake
-rw-r--r-- | cmake/os/FreeBSD.cmake | 20 | ||||
-rw-r--r-- | configure.cmake | 4 |
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() |