Commit 06db4d8
authored
CMake: Move target inclusion after dependency discovery (grimme-lab#127)
Including CMake target file before dependency discovery will cause CMake
failure such as:
```
CMake Error at /opt/test/cp2k-spack/spack/spack/opt/spack/__spack_path_placeholder__/__spack_path_placeholder__/__spack_path_placeholder__/__sp/linux-skylake/mctc-lib-0.4.2-yf4ytpd2bs4tp5yv7p5tdz5ymxiw5ra5/lib64/cmake/mctc-lib/mctc-lib-targets.cmake:68 (set_target_properties):
The link interface of target "mctc-lib::mctc-lib-lib" contains:
OpenMP::OpenMP_Fortran
but the target was not found. Possible reasons include:
```1 parent 061056a commit 06db4d8
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
0 commit comments