Commit 3af90e6
committed
Fix rlottie options not taking effect (CMP0077)
With cmake_minimum_required(3.10), policy CMP0077 is OLD: option()
in the rlottie submodule discards normal variables set before
add_subdirectory and resets them to their defaults (ON). This left
LOTTIE_MODULE=ON, excluding stb_image.cpp from the build and causing
undefined references to lottie_image_load/lottie_image_free/
lottie_image_load_from_data at link time.
Set the options as cache variables with FORCE instead; option()
never overrides an existing cache entry.1 parent f5517b6 commit 3af90e6
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
87 | 90 | | |
88 | 91 | | |
89 | 92 | | |
| |||
0 commit comments