-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use git describe to extract human readable revision info, re-added co…
…de to generate cisstRevision.h using CMake custom command (was previously implemented for SVN)
- Loading branch information
Showing
5 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Cmake configuration file for the installed version of cisst | ||
# | ||
# Author(s): Anton Deguet | ||
# Created on: 2011-11-08 | ||
# | ||
# (C) Copyright 2011-2015 Johns Hopkins University (JHU), All Rights Reserved. | ||
# | ||
# --- begin cisst license - do not edit --- | ||
# | ||
# This software is provided "as is" under an open source license, with | ||
# no warranty. The complete license can be found in license.txt and | ||
# http://www.cisst.org/cisst/license.txt. | ||
# | ||
# --- end cisst license --- | ||
|
||
set (CISST_VERSION_MAJOR "@CISST_VERSION_MAJOR@") | ||
set (CISST_VERSION_MINOR "@CISST_VERSION_MINOR@") | ||
set (CISST_VERSION "@CISST_VERSION@") | ||
|
||
set (CISST_REVISION_DIR "@CMAKE_CURRENT_SOURCE_DIR@") | ||
set (CISST_REVISION_HEADER_SRC "@CISST_REVISION_HEADER_SRC@") | ||
set (CISST_REVISION_HEADER "@CISST_REVISION_HEADER@") | ||
set (GIT_FOUND @GIT_FOUND@) | ||
set (GIT_EXECUTABLE "@GIT_EXECUTABLE@") | ||
|
||
if (GIT_FOUND) | ||
execute_process (COMMAND ${GIT_EXECUTABLE} describe | ||
WORKING_DIRECTORY ${CISST_REVISION_DIR} | ||
TIMEOUT 1 | ||
OUTPUT_VARIABLE CISST_GIT_DESCRIBE) | ||
string (STRIP "${CISST_GIT_DESCRIBE}" CISST_GIT_DESCRIBE) | ||
else (GIT_FOUND) | ||
set (CISST_GIT_DESCRIBE "git-version-unavailable") | ||
endif (GIT_FOUND) | ||
|
||
message ("Found Git revision: ${CISST_GIT_DESCRIBE}") | ||
|
||
configure_file ("${CISST_REVISION_HEADER_SRC}" | ||
"${CISST_REVISION_HEADER}") |