summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vv221804@astra04>2009-12-08 03:12:23 +0100
committerVladislav Vaintroub <vv221804@astra04>2009-12-08 03:12:23 +0100
commitb5761e6348e065a796d798b17af5779220287982 (patch)
tree5714317e9b75c2ebc46977b9e8148366ba246f6d /cmake
parenta9329d5d3fbfc85510021151f8284a2b3f9a7d17 (diff)
downloadmariadb-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.cmake6
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)