Skip to content

Commit

Permalink
added more information in the cmake build-process
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Jan 6, 2025
1 parent 4a97120 commit 28a9d3d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation_ghpages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Install sisl + documentation dependencies
env:
# There is no need for a complete build... Just do it quickly!
SKBUILD_BUILD_TYPE: Debug
SKBUILD_CMAKE_BUILD_TYPE: Debug
run: |
python -m pip install --progress-bar=off --upgrade pip
python -m pip install --progress-bar=off .[analysis,viz,docs]
Expand Down
23 changes: 17 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ cmake_minimum_required(VERSION 3.21 FATAL_ERROR)

list(APPEND CMAKE_MESSAGE_CONTEXT "sisl")

message(STATUS "Building with CMake version: ${CMAKE_VERSION}")
if(SKBUILD)
message(STATUS "Building with scikit-build-core: ${SKBUILD_CORE_VERSION}")
endif()


project(sisl
DESCRIPTION "Cythonized or fortran codes"
HOMEPAGE_URL "https://github.com/zerothi/sisl"
Expand All @@ -20,6 +14,20 @@ project(sisl
# Print out the discovered paths
include(CMakePrintHelpers)

# Build configuration details
message(STATUS "Build configuration information")
list(APPEND CMAKE_MESSAGE_INDENT " ")
cmake_print_variables(CMAKE_VERSION)
cmake_print_variables(CMAKE_BUILD_TYPE)
cmake_print_variables(CMAKE_INTERPROCEDURAL_OPTIMIZATION)
cmake_print_variables(CMAKE_POSITION_INDEPENDENT_CODE)
cmake_print_variables(CMAKE_INSTALL_PREFIX)
cmake_print_variables(CMAKE_PREFIX_PATH)
if(SKBUILD)
message(STATUS "scikit-build-core: ${SKBUILD_CORE_VERSION}")
endif()
list(POP_BACK CMAKE_MESSAGE_INDENT)

# Enable python packages
find_package(Python COMPONENTS
Interpreter
Expand Down Expand Up @@ -115,19 +123,22 @@ cmake_print_variables(CC)
cmake_print_variables(CFLAGS)
cmake_print_variables(CMAKE_C_COMPILER)
cmake_print_variables(CMAKE_C_FLAGS)
cmake_print_variables(CMAKE_C_STANDARD)
set(CXX $ENV{CXX})
set(CXXFLAGS $ENV{CXXFLAGS})
cmake_print_variables(CXX)
cmake_print_variables(CXXFLAGS)
cmake_print_variables(CMAKE_CXX_COMPILER)
cmake_print_variables(CMAKE_CXX_FLAGS)
cmake_print_variables(CMAKE_CXX_STANDARD)
if(WITH_FORTRAN)
set(FC $ENV{FC})
set(FFLAGS $ENV{FFLAGS})
cmake_print_variables(FC)
cmake_print_variables(FFLAGS)
cmake_print_variables(CMAKE_Fortran_COMPILER)
cmake_print_variables(CMAKE_Fortran_FLAGS)
cmake_print_variables(CMAKE_Fortran_STANDARD)
endif()
set(ARCHFLAGS $ENV{ARCHFLAGS})
cmake_print_variables(ARCHFLAGS)
Expand Down

0 comments on commit 28a9d3d

Please sign in to comment.