if( NOT __MOTD__CMAKE__)
   set( __MOTD__CMAKE__ ON)

   if( MULLE_TRACE_INCLUDE)
      message( STATUS "# Include \"${CMAKE_CURRENT_LIST_FILE}\"" )
   endif()

   #
   # Output message of a day to locate output.
   # But if create-build-motd doesn't exist, it's no biggy
   #
   if( MSVC)
      find_program( CREATE_MOTD_EXE mulle-create-build-motd.bat
         PATHS "${MULLE_VIRTUAL_ROOT}/.mulle/share/env/var/$ENV{MULLE_HOSTNAME}/bin"
      )
   else()
      find_program( CREATE_MOTD_EXE mulle-create-build-motd
         PATHS "${MULLE_VIRTUAL_ROOT}/.mulle/share/env/var/$ENV{MULLE_HOSTNAME}/bin"
      )
   endif()


   if( CREATE_MOTD_EXE)
      add_custom_target( __motd__ ALL
         COMMAND "${CREATE_MOTD_EXE}" $ENV{CREATE_BUILD_MOTD_FLAGS}
                     "executable"
                        "${CMAKE_BINARY_DIR}"
                        "${PROJECT_NAME}"
         COMMENT "Creating a motd file for mulle-craft"
         VERBATIM
      )

      add_dependencies( __motd__ ${PROJECT_NAME})
   endif()

   include( MotdAux OPTIONAL)

endif()