Skip to content

Commit 65d0bac

Browse files
authored
Update dependencies (#195)
1 parent f3d981e commit 65d0bac

7 files changed

Lines changed: 18 additions & 11 deletions

File tree

config/cmake/Findmctc-lib.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
set(_lib "mctc-lib")
1818
set(_pkg "MCTCLIB")
1919
set(_url "https://github.com/grimme-lab/mctc-lib")
20-
set(_rev "v0.4.1")
20+
set(_rev "v0.5.2")
2121

2222
if(NOT DEFINED "${_pkg}_FIND_METHOD")
2323
if(DEFINED "${PROJECT_NAME}-dependency-method")

config/cmake/Findtoml-f.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
set(_lib "toml-f")
1818
set(_pkg "TOMLF")
1919
set(_url "https://github.com/toml-f/toml-f")
20-
set(_rev "v0.4.2")
20+
set(_rev "v0.5.1")
2121

2222
if(NOT DEFINED "${_pkg}_FIND_METHOD")
2323
if(DEFINED "${PROJECT_NAME}-dependency-method")

config/cmake/s-dftd3-utils.cmake

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ macro(
7575
"${${_pkg_uc}_BINARY_DIR}"
7676
)
7777

78-
add_library("${package}::${package}" INTERFACE IMPORTED)
79-
target_link_libraries("${package}::${package}" INTERFACE "${package}")
78+
if(NOT TARGET "${package}::${package}")
79+
add_library("${package}::${package}" INTERFACE IMPORTED)
80+
target_link_libraries("${package}::${package}" INTERFACE "${package}")
81+
endif()
8082

8183
# We need the module directory in the subproject before we finish the configure stage
8284
if(NOT EXISTS "${${_pkg_uc}_BINARY_DIR}/include")
@@ -97,8 +99,10 @@ macro(
9799
)
98100
FetchContent_MakeAvailable("${_pkg_lc}")
99101

100-
add_library("${package}::${package}" INTERFACE IMPORTED)
101-
target_link_libraries("${package}::${package}" INTERFACE "${package}")
102+
if(NOT TARGET "${package}::${package}")
103+
add_library("${package}::${package}" INTERFACE IMPORTED)
104+
target_link_libraries("${package}::${package}" INTERFACE "${package}")
105+
endif()
102106

103107
# We need the module directory in the subproject before we finish the configure stage
104108
FetchContent_GetProperties("${_pkg_lc}" BINARY_DIR "${_pkg_uc}_BINARY_DIR")

config/template-config.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ set("SDFTD3_WITH_OpenMP" @SDFTD3_WITH_OpenMP@)
55
set("SDFTD3_USE_MCTCLIB" @SDFTD3_USE_MCTCLIB@)
66

77
if(NOT TARGET "@PROJECT_NAME@::@PROJECT_NAME@")
8-
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake")
9-
108
include(CMakeFindDependencyMacro)
9+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
1110

1211
if(NOT TARGET "OpenMP::OpenMP_Fortran" AND SDFTD3_WITH_OpenMP)
1312
find_dependency("OpenMP")
@@ -16,4 +15,7 @@ if(NOT TARGET "@PROJECT_NAME@::@PROJECT_NAME@")
1615
if(NOT TARGET "mctc-lib::mctc-lib" AND SDFTD3_USE_MCTCLIB)
1716
find_dependency("mctc-lib")
1817
endif()
18+
19+
list(REMOVE_AT CMAKE_MODULE_PATH -1)
20+
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake")
1921
endif()

fpm.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords = ["dispersion-correction", "quantum-chemistry"]
99

1010
[dependencies]
1111
mctc-lib.git = "https://github.com/grimme-lab/mctc-lib"
12-
mctc-lib.tag = "v0.5.0"
12+
mctc-lib.tag = "v0.5.2"
1313

1414
[dev-dependencies]
1515
mstore.git = "https://github.com/grimme-lab/mstore"
@@ -21,6 +21,7 @@ auto-tests = false
2121
[[executable]]
2222
name = "s-dftd3"
2323
dependencies.toml-f.git = "https://github.com/toml-f/toml-f"
24+
dependencies.toml-f.tag = "v0.5.1"
2425

2526
[[test]]
2627
name = "tester"

subprojects/mctc-lib.wrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[wrap-git]
22
directory = mctc-lib
33
url = https://github.com/grimme-lab/mctc-lib
4-
revision = v0.5.1
4+
revision = v0.5.2

subprojects/toml-f.wrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[wrap-git]
22
directory = toml-f
33
url = https://github.com/toml-f/toml-f
4-
revision = v0.5.0
4+
revision = v0.5.1

0 commit comments

Comments
 (0)