projects
/
unres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe3f32c
)
cmake TIMESTAMP instead of COMMAND "date"
author
Cezary Czaplewski
<czarek@chem.univ.gda.pl>
Wed, 9 Sep 2020 19:28:36 +0000
(21:28 +0200)
committer
Cezary Czaplewski
<czarek@chem.univ.gda.pl>
Wed, 9 Sep 2020 19:28:36 +0000
(21:28 +0200)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
13cfec2
..
0e6f8ca
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-20,8
+20,9
@@
MACRO (TODAY RESULT)
EXECUTE_PROCESS(COMMAND "date" "/T" OUTPUT_VARIABLE ${RESULT})
string(REGEX REPLACE "(..)/(..)/..(..).*" "\\3\\2\\1" ${RESULT} ${${RESULT}})
ELSEIF(UNIX)
EXECUTE_PROCESS(COMMAND "date" "/T" OUTPUT_VARIABLE ${RESULT})
string(REGEX REPLACE "(..)/(..)/..(..).*" "\\3\\2\\1" ${RESULT} ${${RESULT}})
ELSEIF(UNIX)
- EXECUTE_PROCESS(COMMAND "date" OUTPUT_VARIABLE ${RESULT})
- string(REGEX REPLACE "(...) (...) (.+) (..:..:..) (.+) (....).*" "\\1 \\2 \\3 \\4 \\5 \\6" ${RESULT} ${${RESULT}})
+# EXECUTE_PROCESS(COMMAND "date" OUTPUT_VARIABLE ${RESULT})
+# string(REGEX REPLACE "(...) (...) (.+) (..:..:..) (.+) (....).*" "\\1 \\2 \\3 \\4 \\5 \\6" ${RESULT} ${${RESULT}})
+ string(TIMESTAMP ${RESULT})
ELSE (WIN32)
MESSAGE(SEND_ERROR "date not implemented")
SET(${RESULT} 000000)
ELSE (WIN32)
MESSAGE(SEND_ERROR "date not implemented")
SET(${RESULT} 000000)