Skip to content

Commit b2514bc

Browse files
committed
CMake: now compile cximage with -fPIC
1 parent bf1dac9 commit b2514bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Externals/cximage/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,5 @@ add_library(cximage STATIC ${SOURCES} ${HEADERS})
4040

4141
set_target_properties(cximage PROPERTIES PREFIX "")
4242
target_link_libraries(cximage)
43+
set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)
44+

0 commit comments

Comments
 (0)