• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision8783 (tree)
Time2020-05-19 01:10:38
Authorzmatsuo

Log Message

cmake ビルド時 SVNVERSION が不明な時、リビジョンを unknown とした

- cmake --build . --target install 時

Change Summary

Incremental Difference

--- trunk/CMakeLists.txt (revision 8782)
+++ trunk/CMakeLists.txt (revision 8783)
@@ -132,9 +132,13 @@
132132 else()
133133 set(USER "NONAME")
134134 endif()
135-
135+
136136 if(NOT DEFINED SNAPSHOT_DIR)
137- string(TIMESTAMP SNAPSHOT_DIR "snapshot-r${SVNVERSION}-%Y%m%d_%H%M%S-${USER}")
137+ if(DEFINED SVNVERSION)
138+ string(TIMESTAMP SNAPSHOT_DIR "snapshot-r${SVNVERSION}-%Y%m%d_%H%M%S-${USER}")
139+ else()
140+ string(TIMESTAMP SNAPSHOT_DIR "snapshot-unknown-%Y%m%d_%H%M%S-${USER}")
141+ endif()
138142 endif()
139143 set(CMAKE_INSTALL_PREFIX "${PROJECT_BINARY_DIR}/${SNAPSHOT_DIR}")
140144
Show on old repository browser