Back to home page

EIC code displayed by LXR

 
 

    


Warning, /acts/cmake/ActsRetrieveVersion.cmake is written in an unsupported language. File is not indexed.

0001 # Retrieve version identification.
0002 #
0003 # Must be included from the main CMakeLists file. Sets the following variables:
0004 #
0005 #   - _acts_version
0006 #   - _acts_commit_hash
0007 #
0008 
0009 # read version number from file
0010 file(READ "version_number" _acts_version)
0011 string(STRIP "${_acts_version}" _acts_version)
0012 
0013 # check if source is in a git repository
0014 if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
0015     set(_acts_is_git_repo TRUE)
0016 else()
0017     set(_acts_is_git_repo FALSE)
0018 endif()
0019 
0020 # set empty hash values by default (no git dependency at configure time)
0021 set(_acts_commit_hash "std::nullopt")
0022 set(_acts_commit_hash_short "std::nullopt")