File tree Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Expand file tree Collapse file tree 2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 22# STB single-file public domain libraries for image encoding
33# https://github.com/nothings/stb
44
5- FetchContent_Declare(
6- stb
7- GIT_REPOSITORY https://github.com/nothings/stb.git
8- GIT_TAG master # Could pin to specific commit for stability
9- GIT_SHALLOW TRUE
10- )
5+ find_package (Stb CONFIG QUIET )
116
12- FetchContent_MakeAvailable(stb)
7+ if (NOT Stb_FOUND)
8+ include (FetchContent)
9+ FetchContent_Declare(
10+ stb
11+ GIT_REPOSITORY https://github.com/nothings/stb.git
12+ GIT_TAG 5c205738c191bcb0abc65c4febfa9bd25ff35234
13+ )
1314
14- # Create interface library for stb headers
15- add_library (stb INTERFACE )
16- target_include_directories (stb INTERFACE ${stb_SOURCE_DIR} )
15+ FetchContent_MakeAvailable(stb)
1716
17+ add_library (stb INTERFACE )
18+ target_include_directories (stb INTERFACE ${stb_SOURCE_DIR} )
19+ endif ()
Original file line number Diff line number Diff line change 33 "builtin-baseline" : " b02e341c927f16d991edbd915d8ea43eac52096c" ,
44 "dependencies" : [
55 " zlib" ,
6- " ffmpeg"
6+ " ffmpeg" ,
7+ " stb"
78 ]
89 }
You can’t perform that action at this time.
0 commit comments