mirror of
https://github.com/polybar/polybar.git
synced 2025-04-14 17:33:17 -04:00
fix(cmake): Enable -fPIC for static jsoncpp.
This commit is contained in:
parent
6ff04022c4
commit
cb0a351404
1 changed files with 3 additions and 0 deletions
|
@ -40,6 +40,9 @@ list(APPEND dirs ${XPP_INCLUDE_DIRS})
|
|||
if(ENABLE_I3)
|
||||
add_subdirectory(i3ipcpp)
|
||||
set_property(TARGET i3ipc++ PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
if(TARGET jsoncpp_lib_static)
|
||||
set_property(TARGET jsoncpp_lib_static PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
set(I3IPCPP_LIBRARIES ${I3IPCPP_LIBRARIES} PARENT_SCOPE)
|
||||
set(I3IPCPP_INCLUDE_DIRS ${I3IPCPP_INCLUDE_DIRS} PARENT_SCOPE)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Reference in a new issue