diff options
author | Terje Rosten <terje.rosten@oracle.com> | 2017-03-28 13:22:32 +0200 |
---|---|---|
committer | Terje Rosten <terje.rosten@oracle.com> | 2017-03-28 13:22:32 +0200 |
commit | 5d4cfb30e517e861defd9728e88f37ef6072becb (patch) | |
tree | 3de97d0d3af3ac44cdddd883d4b167b421f92212 /scripts/CMakeLists.txt | |
parent | 741305b3a4a15b8957926f24300ea0b7da8d04bd (diff) | |
download | mariadb-git-5d4cfb30e517e861defd9728e88f37ef6072becb.tar.gz |
BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD
Use cmake variable to adjust shebang to platform.
Diffstat (limited to 'scripts/CMakeLists.txt')
-rw-r--r-- | scripts/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 920b6854334..d0fdf76ce9e 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved. # # 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 @@ -104,6 +104,13 @@ ELSE() "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") ENDIF() + +IF(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + SET (PERL_PATH "/usr/local/bin/perl") +ELSE() + SET (PERL_PATH "/usr/bin/perl") +ENDIF() + IF(UNIX) # SHELL_PATH, FIND_PROC, CHECK_PID are used by mysqld_safe IF(CMAKE_SYSTEM_NAME MATCHES "SunOS") |