diff options
author | Slávek Banko <[email protected]> | 2019-01-16 14:22:47 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-01-28 16:28:29 +0100 |
commit | 6c8bd1332870202985febd59c55208f58f6f2a65 (patch) | |
tree | 83107deb2b85518c07b2fb61ef7a33477baca3d5 /modules/TDEMacros.cmake | |
parent | b034c47597735608335f5da1e09adbd13ad5d6a5 (diff) | |
download | tde-cmake-6c8bd1332870202985febd59c55208f58f6f2a65.tar.gz tde-cmake-6c8bd1332870202985febd59c55208f58f6f2a65.zip |
Add tde_setup_msgfmt macro.
Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index d57c776..1fb0e6f 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -1907,6 +1907,25 @@ macro( tde_setup_gcc_visibility ) endmacro( ) +################################################# +##### +##### tde_setup_msgfmt + +macro( tde_setup_msgfmt ) + if( NOT DEFINED MSGFMT_EXECUTABLE ) + include( FindGettext ) + if( GETTEXT_FOUND ) + set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE} + CACHE FILEPATH "path to msgfmt executable" ) + endif( GETTEXT_FOUND ) + + if( NOT MSGFMT_EXECUTABLE ) + tde_message_fatal( "msgfmt is required but was not found on your system." ) + endif( NOT MSGFMT_EXECUTABLE ) + endif( ) +endmacro( ) + + ################################################ ##### ##### Restore CMP0026 policy |