summaryrefslogtreecommitdiff
path: root/cmake/bison.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
commitef482374e556a2a022ad2668bf386a30023c05b6 (patch)
tree5714317e9b75c2ebc46977b9e8148366ba246f6d /cmake/bison.cmake
parent0f3b102db9ed2b71c29c25f76e5f0a9603cc73fc (diff)
downloadmariadb-git-ef482374e556a2a022ad2668bf386a30023c05b6.tar.gz
couple of tweaks for solaris on sparc, link with librt, as it defines sched_yield
Diffstat (limited to 'cmake/bison.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)