Skip to content

Commit

Permalink
cpack: correct params
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Aug 25, 2022
1 parent 4b5c699 commit 47d6eb8
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ endif()

project(MUMPS
LANGUAGES C Fortran
VERSION 5.5.1.4
VERSION 5.5.1.5
DESCRIPTION "Sparse direct parallel solver"
HOMEPAGE_URL "http://mumps-solver.org/"
)
Expand Down
11 changes: 6 additions & 5 deletions cmake/install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@ DESTINATION cmake

# --- CPack

set(CPACK_GENERATOR TZST)
set(CPACK_SOURCE_GENERATOR TZST)
set(CPACK_GENERATOR "TZST")
set(CPACK_SOURCE_GENERATOR "TZST")
set(CPACK_PACKAGE_VENDOR "NPT(ENSEEIHT)-IRIT")
set(CPACK_PACKAGE_CONTACT "NPT(ENSEEIHT)-IRIT")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "liblapack-dev")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/package")
set(CPACK_PACKAGE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
set(CPACK_PACKAGE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/package)

# not .gitignore as its regex syntax is more advanced than CMake
set(CPACK_SOURCE_IGNORE_FILES ".git/;.git*/;.vscode/;.mypy_cache/;_CPack_Packages/;${CMAKE_BINARY_DIR}/")
set(CPACK_SOURCE_IGNORE_FILES .git/ .github/ .vscode/ .mypy_cache/ _CPack_Packages/
${CMAKE_BINARY_DIR}/ ${PROJECT_BINARY_DIR}/
)

install(FILES ${CPACK_RESOURCE_FILE_README} ${CPACK_RESOURCE_FILE_LICENSE}
DESTINATION share/docs/${PROJECT_NAME}
Expand Down
4 changes: 2 additions & 2 deletions cmake/libraries.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"lapack": {
"git": "https://github.com/scivision/lapack.git",
"tag": "v3.10.1.4"
"tag": "v3.10.1.5"
},
"scalapack": {
"git": "https://github.com/scivision/scalapack.git",
"tag": "v2.2.1.1"
"tag": "v2.2.1.2"
},

"mumps_src": {
Expand Down
3 changes: 2 additions & 1 deletion cmake/mumps_src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ FetchContent_Declare(${PROJECT_NAME}
URL ${urls}
URL_HASH SHA256=${sha256}
UPDATE_DISCONNECTED true
INACTIVITY_TIMEOUT 60
TLS_VERIFY true
GIT_REMOTE_UPDATE_STRATEGY "CHECKOUT"
INACTIVITY_TIMEOUT 60
)

endif()
Expand Down
14 changes: 4 additions & 10 deletions cmake/options.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include(GNUInstallDirs)

message(STATUS "${PROJECT_NAME} ${PROJECT_VERSION} CMake ${CMAKE_VERSION} Toolchain ${CMAKE_TOOLCHAIN_FILE}")

if(local)
Expand Down Expand Up @@ -35,26 +37,18 @@ if(intsize64)
)
endif()

include(GNUInstallDirs)

set(CMAKE_TLS_VERIFY true)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})

# Rpath options necessary for shared library install to work correctly in user projects
set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/lib)
set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true)

# Necessary for shared library with Visual Studio / Windows oneAPI
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS true)

if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
# will not take effect without FORCE
# CMAKE_BINARY_DIR for use from FetchContent
set(CMAKE_INSTALL_PREFIX ${CMAKE_BINARY_DIR} CACHE PATH "Install top-level directory" FORCE)
endif()

# allow CMAKE_PREFIX_PATH with ~ expand
if(CMAKE_PREFIX_PATH)
get_filename_component(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} ABSOLUTE)
Expand Down

0 comments on commit 47d6eb8

Please sign in to comment.