Skip to content

Commit 9ee0a84

Browse files
committed
cleanup
1 parent 4d855e9 commit 9ee0a84

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cmake/dependencies/common.cmake

+3-4
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ if(NOT EXCLUDE_MPQ_SUPPORT)
4343
endif()
4444

4545
#=================== STB ===================
46-
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/stb")
47-
file(DOWNLOAD "https://github.com/nothings/stb/raw/0bc88af4de5fb022db643c2d8e549a0927749354/stb_image.h" "${CMAKE_BINARY_DIR}/_deps/stb/stb_image.h")
48-
file(WRITE "${CMAKE_BINARY_DIR}/_deps/stb/stb_impl.c" "#define STB_IMAGE_IMPLEMENTATION\n#include \"stb_image.h\"")
49-
5046
set(STB_DIR ${CMAKE_BINARY_DIR}/_deps/stb)
47+
file(DOWNLOAD "https://github.com/nothings/stb/raw/0bc88af4de5fb022db643c2d8e549a0927749354/stb_image.h" "${STB_DIR}/stb_image.h")
48+
file(WRITE "${STB_DIR}/stb_impl.c" "#define STB_IMAGE_IMPLEMENTATION\n#include \"stb_image.h\"")
49+
5150
add_library(stb STATIC)
5251

5352
target_sources(stb PRIVATE

0 commit comments

Comments
 (0)