Skip to content
Snippets Groups Projects
Commit 0d821cae authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Produce a simple configuration report at CMake invocation

Also removed explicit warnings messages. This warning had a spurious
effects in IDE compilation (counted as compilation warnings for
instance)
parent 5d030a1b
Branches
Tags
1 merge request!51Produce a simple configuration report at CMake invocation
...@@ -115,6 +115,7 @@ endif() ...@@ -115,6 +115,7 @@ endif()
# checks for MPI # checks for MPI
if (PUGS_ENABLE_MPI MATCHES "^(AUTO|ON)$") if (PUGS_ENABLE_MPI MATCHES "^(AUTO|ON)$")
set(MPI_DETERMINE_LIBRARY_VERSION TRUE)
find_package(MPI) find_package(MPI)
endif() endif()
...@@ -126,7 +127,7 @@ if(${MPI_FOUND}) ...@@ -126,7 +127,7 @@ if(${MPI_FOUND})
find_package(ParMETIS) find_package(ParMETIS)
if (NOT PARMETIS_LIBRARIES) if (NOT PARMETIS_LIBRARIES)
if(PUGS_ENABLE_MPI MATCHES "^AUTO$") if(PUGS_ENABLE_MPI MATCHES "^AUTO$")
message(WARNING "MPI support deactivated: ParMETIS cannot be found!") message(STATUS "MPI support deactivated: ParMETIS cannot be found!")
unset(MPI_FOUND) unset(MPI_FOUND)
unset(MPI_CXX_LINK_FLAGS) unset(MPI_CXX_LINK_FLAGS)
unset(MPI_CXX_LIBRARIES) unset(MPI_CXX_LIBRARIES)
...@@ -159,7 +160,7 @@ if (CLANG_FORMAT) ...@@ -159,7 +160,7 @@ if (CLANG_FORMAT)
-P ${PUGS_SOURCE_DIR}/cmake/ClangFormatProcess.cmake -P ${PUGS_SOURCE_DIR}/cmake/ClangFormatProcess.cmake
COMMENT "running ${CLANG_FORMAT} ...") COMMENT "running ${CLANG_FORMAT} ...")
else () else ()
message(WARNING "clang-format no found!") message(STATUS "clang-format no found!")
endif() endif()
#------------------------------------------------------ #------------------------------------------------------
...@@ -176,7 +177,7 @@ if (CLAZY_STANDALONE) ...@@ -176,7 +177,7 @@ if (CLAZY_STANDALONE)
COMMENT "running ${CLAZY_STANDALONE} ..." COMMENT "running ${CLAZY_STANDALONE} ..."
) )
else () else ()
message(WARNING "clazy-standalone no found!") message(STATUS "clazy-standalone no found!")
endif() endif()
#------------------------------------------------------ #------------------------------------------------------
...@@ -446,3 +447,41 @@ else() ...@@ -446,3 +447,41 @@ else()
LIBRARY DESTINATION lib LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib) ARCHIVE DESTINATION lib)
endif() endif()
message("")
message("====== pugs build options ======")
message(STATUS "version: ${PUGS_VERSION}")
message(STATUS "build type: ${CMAKE_BUILD_TYPE}")
message(STATUS "compiler: ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
message(STATUS "kokkos devices: ${PUGS_BUILD_KOKKOS_DEVICES}")
if (MPI_FOUND)
message(STATUS "MPI: ${MPI_CXX_LIBRARY_VERSION_STRING}")
else()
if(NOT PARMETIS_LIBRARIES)
message(STATUS "MPI: deactivated: ParMETIS cannot be found!")
else()
message(STATUS "MPI: not found!")
endif()
endif()
if(CLANG_FORMAT)
message(STATUS "clang-format: ${CLANG_FORMAT}")
else()
message(STATUS "clang-format: not found!")
endif()
if(CLAZY_STANDALONE)
message(STATUS "clazy-standalone: ${CLAZY_STANDALONE}")
else()
message(STATUS "clazy-standalone: no found!")
endif()
if (DOXYGEN_FOUND)
message(STATUS "doxygen: ${DOXYGEN_EXECUTABLE}")
else()
message(STATUS "doxygen: no found!")
endif()
message("================================")
message("")
...@@ -4,19 +4,19 @@ find_path(PARMETIS_INCLUDE_DIR parmetis.h ...@@ -4,19 +4,19 @@ find_path(PARMETIS_INCLUDE_DIR parmetis.h
PATH_SUFFIX include parmetis) PATH_SUFFIX include parmetis)
if (EXISTS "${PARMETIS_INCLUDE_DIR}/parmetis.h") if (EXISTS "${PARMETIS_INCLUDE_DIR}/parmetis.h")
message("-- Found parmetis.h in ${PARMETIS_INCLUDE_DIR}") message(STATUS "Found parmetis.h in ${PARMETIS_INCLUDE_DIR}")
find_library(LIB_PARMETIS parmetis) find_library(LIB_PARMETIS parmetis)
if("${LIB_PARMETIS}" STREQUAL "LIB_PARMETIS-NOTFOUND") if("${LIB_PARMETIS}" STREQUAL "LIB_PARMETIS-NOTFOUND")
message(WARNING "Could not find parmetis library") message("** Could not find parmetis library")
endif() endif()
find_library(LIB_METIS metis) find_library(LIB_METIS metis)
if("${LIB_PARMETIS}" STREQUAL "LIB_METIS-NOTFOUND") if("${LIB_PARMETIS}" STREQUAL "LIB_METIS-NOTFOUND")
message(WARNING "Could not find metis library") message("** Could not find metis library")
endif() endif()
set(PARMETIS_LIBRARIES ${LIB_PARMETIS} ${LIB_METIS}) set(PARMETIS_LIBRARIES ${LIB_PARMETIS} ${LIB_METIS})
message("-- Found parmetis/metis libraries ${PARMETIS_LIBRARIES}") message(STATUS "Found parmetis/metis libraries ${PARMETIS_LIBRARIES}")
else() else()
message(WARNING "Could not find parmetis.h") message("** Could not find parmetis.h")
endif() endif()
mark_as_advanced(PARMETIS_INCLUDE_DIR PARMETIS_LIBRARIES) mark_as_advanced(PARMETIS_INCLUDE_DIR PARMETIS_LIBRARIES)
...@@ -26,6 +26,4 @@ if (DOXYGEN_FOUND) ...@@ -26,6 +26,4 @@ if (DOXYGEN_FOUND)
# building doc builds doxygen # building doc builds doxygen
add_custom_target(doc doxygen) add_custom_target(doc doxygen)
else (DOXYGEN_FOUND) endif()
message("Doxygen need to be installed to generate the doxygen documentation")
endif (DOXYGEN_FOUND)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment