Warning, /sdk/pology/cmake/FindMsgmerge.cmake is written in an unsupported language. File is not indexed.

0001 # TODO: Add doc comments.
0002 
0003 include(FindPackageHandleStandardArgs)
0004 
0005 if(NOT MSGMERGE_EXECUTABLE)
0006     find_program(MSGMERGE_EXECUTABLE NAMES msgmerge)
0007     message(STATUS
0008         "Looking for msgmerge "
0009         "(use -DMSGMERGE_EXECUTABLE= to set manually)...")
0010 else()
0011     if(NOT EXISTS ${MSGMERGE_EXECUTABLE})
0012         set(MSGMERGE_EXECUTABLE no)
0013     endif()
0014 endif()
0015 
0016 if(MSGMERGE_EXECUTABLE)
0017     set(env_lc_all $ENV{LC_ALL})
0018     set(ENV{LC_ALL} "C")
0019     execute_process(COMMAND ${MSGMERGE_EXECUTABLE} --version
0020                     OUTPUT_VARIABLE stdout)
0021     string(REGEX REPLACE ".* ([0-9]+\\.[0-9]+(\\.[0-9]+)?).*" "\\1"
0022                          MSGMERGE_VERSION "${stdout}")
0023     set(ENV{LC_ALL} ${env_lc_all})
0024 endif()
0025 
0026 find_package_handle_standard_args(Msgmerge
0027     REQUIRED_VARS MSGMERGE_EXECUTABLE
0028     VERSION_VAR MSGMERGE_VERSION
0029 )