@@ -17,15 +17,6 @@ set ( CMAKE_CONFIGURATION_TYPES "Debug" "Release" "MinSizeRel" "RelWithDebInfo"
1717set ( CMAKE_BUILD_TYPE "Release"
1818 CACHE STRING "Select which configuration to build." )
1919set_property ( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
20- message ( STATUS
21- "
22- ============================================================
23- Building OpenCoarrays configuration: ${CMAKE_BUILD_TYPE}
24- ============================================================
25- " )
26-
27- message ( STATUS "Running with CMake from: ${CMAKE_COMMAND} " )
28- message ( STATUS "Current source dir (for OpenCoarrays): ${CMAKE_CURRENT_SOURCE_DIR} " )
2920
3021# Add option and check environment to determine if developer tests should be run
3122set ( _TF OFF )
@@ -52,8 +43,7 @@ string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+(-rc[0-9]+)?"
5243 OpenCoarraysVersion "${first_line} " )
5344
5445if ((NOT (OpenCoarraysVersion MATCHES "[0-9]+\\ .[0-9]+\\ .[0-9]+(-rc[0-9]+)?" )) AND (EXISTS "${CMAKE_SOURCE_DIR} /.git" ))
55- message ( STATUS "Build from git repository detected" )
56- find_package (Git)
46+ find_package (Git QUIET )
5747 if (GIT_FOUND)
5848 execute_process (COMMAND "${GIT_EXECUTABLE} " describe --abbrev=0
5949 WORKING_DIRECTORY "${CMAKE_SOURCE_DIR} "
@@ -96,6 +86,18 @@ string(REGEX REPLACE "-rc[0-9]+$"
9686 ".0" OPENCOARRAYS_CMAKE_PROJECT_VERSION
9787 "${OpenCoarraysVersion} " )
9888
89+ file (READ "${CMAKE_CURRENT_LIST_DIR} /cmake/Banner.txt.in" OC_BANNER)
90+ string (CONFIGURE "${OC_BANNER} " OC_BANNER @ONLY)
91+ string (STRIP "${OC_BANNER} " OC_BANNER)
92+ message (STATUS "${OC_BANNER} " )
93+
94+ if (EXISTS "${CMAKE_CURRENT_LIST_DIR} /.git" )
95+ message ( STATUS "Build from git repository detected" )
96+ endif ()
97+
98+ message ( STATUS "Running with CMake from: ${CMAKE_COMMAND} " )
99+ message ( STATUS "Current source dir (for OpenCoarrays): ${CMAKE_CURRENT_SOURCE_DIR} " )
100+
99101project (opencoarrays VERSION "${OPENCOARRAYS_CMAKE_PROJECT_VERSION} " LANGUAGES C Fortran)
100102
101103if (DEFINED CMAKE_BUILD_TYPE AND "${CMAKE_BUILD_TYPE} " MATCHES "[Rr][Ee][Ll]" )
0 commit comments