File tree Expand file tree Collapse file tree 2 files changed +9
-25
lines changed Expand file tree Collapse file tree 2 files changed +9
-25
lines changed Original file line number Diff line number Diff line change @@ -59,22 +59,9 @@ elif get_option('blas') == 'custom'
59
59
endif
60
60
61
61
# Create the tool chain library as subproject
62
- mctc_dep = dependency (' mctc-lib' , required : false )
63
- if not mctc_dep.found()
64
- mctc_prj = subproject (
65
- ' mctc-lib' ,
66
- version : ' >=0.2' ,
67
- default_options : [
68
- ' default_library=static' ,
69
- ],
70
- )
71
- mctc_dep = mctc_prj.get_variable (' mctc_dep' )
72
-
73
- if install
74
- install_data (
75
- mctc_prj.get_variable (' mctc_lic' ),
76
- install_dir : get_option (' datadir' )/ ' licenses' / meson .project_name()/ ' mctc-lib'
77
- )
78
- endif
79
- endif
62
+ mctc_dep = dependency (
63
+ ' mctc-lib' ,
64
+ fallback : [' mctc-lib' , ' mctc_dep' ],
65
+ default_options : [' default_library=static' ],
66
+ )
80
67
lib_deps += mctc_dep
Original file line number Diff line number Diff line change 15
15
# along with s-dftd3. If not, see <https://www.gnu.org/licenses/>.
16
16
17
17
# Create mstore as subproject for testing
18
- mstore_prj = subproject (
18
+ mstore_dep = dependency (
19
19
' mstore' ,
20
- version : ' >=0.1' ,
20
+ fallback : [' mstore' , ' mstore_dep' ],
21
+ default_options : [' default_library=static' ],
21
22
required : not meson .is_subproject(),
22
- default_options : [
23
- ' default_library=static' ,
24
- ],
25
23
)
26
24
# If we do not find mstore and are a subproject, we just skip testing
27
- if not mstore_prj .found()
25
+ if not mstore_dep .found()
28
26
subdir_done ()
29
27
endif
30
- mstore_dep = mstore_prj.get_variable (' mstore_dep' )
31
28
32
29
tests = [
33
30
' ncoord' ,
You can’t perform that action at this time.
0 commit comments