Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows: change leading / to - in RAV1E_LIBRARIES
Fix the ci-windows.yml error in the "Build libavif (ninja)" step: ninja: error: '/defaultlib:msvcrt', needed by 'avif_example_decode_memory.exe', missing and no known rule to make it RAV1E_LIBRARIES is passed to target_link_libraries(). Item names starting with -, but not -l or -framework, are treated by target_link_libraries() as linker flags. On Windows, linker flags may start with / (e.g., /defaultlib:msvcrt), so we need to change / to - before passing the linker flags to target_link_libraries(). Otherwise target_link_libraries() will incorrectly treat those linker flags as libraries.
- Loading branch information