diff --git a/contrib/platform/win32/CMakeModules/ompi_configure.cmake b/contrib/platform/win32/CMakeModules/ompi_configure.cmake index 8e3256163e..063620ca4f 100644 --- a/contrib/platform/win32/CMakeModules/ompi_configure.cmake +++ b/contrib/platform/win32/CMakeModules/ompi_configure.cmake @@ -110,6 +110,7 @@ EXECUTE_PROCESS(COMMAND cmd /C date /t STRING (REPLACE "\n" "" CURRENT_TIME ${CURRENT_TIME}) STRING (REPLACE "\n" "" CURRENT_DATE ${CURRENT_DATE}) +STRING (REGEX MATCH [.-/\0-9]+ CURRENT_DATE ${CURRENT_DATE}) SET (OMPI_CONFIGURE_DATE "${CURRENT_TIME} ${CURRENT_DATE}" CACHE INTERNAL "OMPI_CONFIGURE_DATE") SET (OMPI_BUILD_DATE "${CURRENT_TIME} ${CURRENT_DATE}" CACHE INTERNAL "OMPI_BUILD_DATE")