diff options
author | Timothy Pearson <[email protected]> | 2014-03-27 03:37:51 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-03-27 03:37:51 -0500 |
commit | 5e4b4371800526bccacadd1bcc478410b59a7a69 (patch) | |
tree | 3f36c77f674a49ae9d5ac891f25d9787380f5eee /modules/FindTDE.cmake | |
parent | 836cbcaead88584a141c7c715128f5243661953a (diff) | |
download | tde-cmake-5e4b4371800526bccacadd1bcc478410b59a7a69.tar.gz tde-cmake-5e4b4371800526bccacadd1bcc478410b59a7a69.zip |
Fill in SCM metadata if present
Properly set library metadata
Diffstat (limited to 'modules/FindTDE.cmake')
-rw-r--r-- | modules/FindTDE.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/FindTDE.cmake b/modules/FindTDE.cmake index 0e3357c..342cd5c 100644 --- a/modules/FindTDE.cmake +++ b/modules/FindTDE.cmake @@ -86,6 +86,14 @@ if( NOT TDE_FOUND ) set( KDE3_DCOPIDLNG_EXECUTABLE env KDECONFIG=${KDECONFIG_EXECUTABLE} ${KDE3_DCOPIDLNG_EXECUTABLE} CACHE INTERNAL "dcopidlng executable" FORCE ) + # look for SCM data if present + if( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmmodule" ) + file( STRINGS "${CMAKE_SOURCE_DIR}/.tdescmmodule" TDE_SCM_MODULE_NAME ) + endif( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmmodule" ) + if( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmrevision" ) + file( STRINGS "${CMAKE_SOURCE_DIR}/.tdescmrevision" TDE_SCM_MODULE_REVISION ) + endif( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmrevision" ) + message( STATUS " found 'TDE', version ${TDE_VERSION}" ) endif( NOT TDE_FOUND ) |