mirror of
https://github.com/MariaDB/server.git
synced 2025-12-04 17:23:46 +03:00
Fix formatting in 'INFO_BIN' on Windows - backport.
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
|
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# 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
|
# it under the terms of the GNU General Public License as published by
|
||||||
@@ -82,9 +82,11 @@ MACRO(CREATE_INFO_BIN)
|
|||||||
|
|
||||||
FILE(WRITE ${INFO_BIN} "===== Information about the build process: =====\n")
|
FILE(WRITE ${INFO_BIN} "===== Information about the build process: =====\n")
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
EXECUTE_PROCESS(COMMAND cmd /c date /T OUTPUT_VARIABLE TMP_DATE)
|
EXECUTE_PROCESS(COMMAND cmd /c date /T
|
||||||
|
OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
ELSEIF(UNIX)
|
ELSEIF(UNIX)
|
||||||
EXECUTE_PROCESS(COMMAND date "+%Y-%m-%d %H:%M:%S" OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
EXECUTE_PROCESS(COMMAND date "+%Y-%m-%d %H:%M:%S"
|
||||||
|
OUTPUT_VARIABLE TMP_DATE OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
ELSE()
|
ELSE()
|
||||||
SET(TMP_DATE "(no date command known for this platform)")
|
SET(TMP_DATE "(no date command known for this platform)")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|||||||
Reference in New Issue
Block a user