Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 79c347b

Browse files
authored
STBImage: build with -fPIC (#442)
Mark the library to be built as position independent code.
1 parent 0f574e0 commit 79c347b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Support/STBImage/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
add_library(STBImage STATIC
22
stb_image_write.c
33
stb_image.c)
4+
set_target_properties(STBImage PROPERTIES
5+
POSITION_INDEPENDENT_CODE YES)
46
target_include_directories(STBImage PUBLIC
57
include)

0 commit comments

Comments
 (0)