Skip to content

Commit

Permalink
CMakeLists.txt: refresh formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitsune Ral committed Jan 3, 2024
1 parent 01245ee commit 801ea19
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,21 +108,20 @@ endif ()
if (NOT USE_INTREE_LIBQMC)
find_package(${QUOTIENT} 0.8 REQUIRED)
if (NOT ${QUOTIENT}_FOUND)
message( WARNING "libQuotient not found; configuration will most likely fail.")
message( WARNING "Make sure you have installed libQuotient development files")
message( WARNING "as a package or checked out the library sources in lib/.")
message( WARNING "See also BUILDING.md")
message(WARNING "libQuotient not found; configuration will most likely fail.")
message(WARNING "Make sure you have installed libQuotient development files")
message(WARNING "as a package or checked out the library sources in lib/.")
message(WARNING "See also BUILDING.md")
endif ()
endif ()

message( STATUS )
message( STATUS "=============================================================================" )
message( STATUS " Quaternion ${quaternion_VERSION} Build Information" )
message( STATUS "=============================================================================" )
message(STATUS)
message(STATUS "== Quaternion ${quaternion_VERSION} configuration summary ==")
message(STATUS)
if (CMAKE_BUILD_TYPE)
message( STATUS "Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
endif(CMAKE_BUILD_TYPE)
message( STATUS "Quaternion install prefix: ${CMAKE_INSTALL_PREFIX}" )
message(STATUS "Quaternion install prefix: ${CMAKE_INSTALL_PREFIX}")
# Get Git info if possible
find_package(Git)
if(GIT_FOUND)
Expand All @@ -131,25 +130,24 @@ if(GIT_FOUND)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
OUTPUT_VARIABLE GIT_SHA1
OUTPUT_STRIP_TRAILING_WHITESPACE)
message( STATUS "Git SHA1: ${GIT_SHA1}")
message(STATUS "Git SHA1: ${GIT_SHA1}")
endif()
message( STATUS "Using compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}" )
message( STATUS "Using Qt ${${Qt}_VERSION} at ${${Qt}_Prefix}" )
message(STATUS "Using compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
message(STATUS "Using Qt ${${Qt}_VERSION} at ${${Qt}_Prefix}")
if (USE_INTREE_LIBQMC)
message( STATUS "Using in-tree libQuotient")
message(STATUS "Using in-tree libQuotient")
if (GIT_FOUND)
execute_process(COMMAND
"${GIT_EXECUTABLE}" rev-parse -q HEAD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib
OUTPUT_VARIABLE LIB_GIT_SHA1
OUTPUT_STRIP_TRAILING_WHITESPACE)
message( STATUS " Library git SHA1: ${LIB_GIT_SHA1}")
message(STATUS " Library git SHA1: ${LIB_GIT_SHA1}")
endif (GIT_FOUND)
else ()
message( STATUS "Using libQuotient ${${QUOTIENT}_VERSION} at ${${QUOTIENT}_DIR}")
message(STATUS "Using libQuotient ${${QUOTIENT}_VERSION} at ${${QUOTIENT}_DIR}")
endif ()
message( STATUS "=============================================================================" )
message( STATUS )
message(STATUS)

# Set up source files
set(quaternion_SRCS
Expand Down Expand Up @@ -288,9 +286,9 @@ if(WIN32)
RESULT_VARIABLE WDQ_RETVAL
)
if (WDQ_RETVAL)
message( \"windeployqt returned \${WDQ_RETVAL} - check messages above\")
message(WARNING \"windeployqt returned \${WDQ_RETVAL} - check messages above\")
else()
message( STATUS \"Quaternion and its dependencies have been deployed to \${CMAKE_INSTALL_PREFIX}.\")
message(STATUS \"Quaternion and its dependencies have been deployed to \${CMAKE_INSTALL_PREFIX}.\")
endif()
")
install(FILES ${quaternion_QM}
Expand Down

0 comments on commit 801ea19

Please sign in to comment.