Commit 9aad344
committed
Fix CI test project to demonstrate correct usage order
The integration test was calling project() before setting up cpp-library and
enabling dependency tracking, which is incorrect and would fail for any library
with actual dependencies.
Corrected order:
1. cmake_minimum_required(VERSION 3.24) - updated from 3.20
2. include CPM.cmake
3. CPMAddPackage(cpp-library)
4. include cpp-library.cmake
5. cpp_library_enable_dependency_tracking()
6. project() - now called AFTER tracking enabled
7. cpp_library_setup()
This matches the documented usage pattern and ensures the test demonstrates
best practices for users following the example.1 parent 31df212 commit 9aad344
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
43 | 42 | | |
| 43 | + | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
0 commit comments