diff options
author | Vladislav Vaintroub <vv221804@astra04> | 2009-12-08 03:12:23 +0100 |
---|---|---|
committer | Vladislav Vaintroub <vv221804@astra04> | 2009-12-08 03:12:23 +0100 |
commit | b5761e6348e065a796d798b17af5779220287982 (patch) | |
tree | 5714317e9b75c2ebc46977b9e8148366ba246f6d /cmake | |
parent | a9329d5d3fbfc85510021151f8284a2b3f9a7d17 (diff) | |
download | mariadb-git-b5761e6348e065a796d798b17af5779220287982.tar.gz |
couple of tweaks for solaris on sparc, link with librt, as it defines sched_yield
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/bison.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/bison.cmake b/cmake/bison.cmake index 9e01ef3d246..1dd5d10cd33 100644 --- a/cmake/bison.cmake +++ b/cmake/bison.cmake @@ -13,6 +13,12 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +IF(CMAKE_SYSTEM_NAME MATCHES "SunOS") + # On Solaris, /opt/csw often contains a newer bison + IF(NOT BISON_EXECUTABLE AND EXISTS /opt/csw/bin/bison) + SET(BISON_EXECUTABLE /opt/csw/bin/bison) + ENDIF() +ENDIF() FIND_PROGRAM(BISON_EXECUTABLE bison DOC "path to the bison executable") MARK_AS_ADVANCED(BISON_EXECUTABLE "") IF(NOT BISON_EXECUTABLE) |