Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ParaView
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Utkarsh Ayachit
ParaView
Commits
91123c5d
Commit
91123c5d
authored
10 years ago
by
Ben Boeckel
Browse files
Options
Downloads
Patches
Plain Diff
sciberquest: be smarter about getting the date
Change-Id: I7a19fd7cf0dc22144a94c8a1c813f2ffe748d3f9
parent
97826b1d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Plugins/SciberQuestToolKit/ParaViewPlugin/GetDate.cmake
+9
-6
9 additions, 6 deletions
Plugins/SciberQuestToolKit/ParaViewPlugin/GetDate.cmake
with
9 additions
and
6 deletions
Plugins/SciberQuestToolKit/ParaViewPlugin/GetDate.cmake
+
9
−
6
View file @
91123c5d
...
...
@@ -6,11 +6,14 @@
# Copyright 2012 SciberQuest Inc.
#
macro
(
GetDate RESULT
)
set
(
${
RESULT
}
"00/00/0000"
)
if
(
WIN32
)
execute_process
(
COMMAND
"cmd"
" /C date /T"
OUTPUT_VARIABLE
${
RESULT
}
)
elseif
(
UNIX
)
execute_process
(
COMMAND
"date"
"+%m/%d/%Y"
OUTPUT_VARIABLE
${
RESULT
}
)
if
(
CMAKE_VERSION VERSION_LESS 2.8.11
)
set
(
${
RESULT
}
"00/00/0000"
)
if
(
WIN32
)
execute_process
(
COMMAND
"cmd"
" /C date /T"
OUTPUT_VARIABLE
${
RESULT
}
OUTPUT_STRIP_TRAILING_WHITESPACE
)
elseif
(
UNIX
)
execute_process
(
COMMAND
"date"
"+%m/%d/%Y"
OUTPUT_VARIABLE
${
RESULT
}
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif
()
else
()
string
(
TIMESTAMP
${
RESULT
}
"%m/%d/%Y"
)
endif
()
string
(
REGEX REPLACE
"(.*)(
\n
|
\r
)$"
"
\\
1"
${
RESULT
}
${${
RESULT
}}
)
endmacro
()
This diff is collapsed.
Click to expand it.
Utkarsh Ayachit
@utkarsh.ayachit
mentioned in commit
1933a5fc
·
10 years ago
mentioned in commit
1933a5fc
mentioned in commit 1933a5fc7372e968d1d99d8ad76a3ad3140f3065
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment