mirror of
https://github.com/etlegacy/etlegacy-libs.git
synced 2025-04-09 16:05:00 +00:00
Revert "Revert "cmake: build bundled_cjson with -fpic""
This reverts commit fb3f234a5d
.
This commit is contained in:
parent
fb3f234a5d
commit
d5c4445567
1 changed files with 1 additions and 0 deletions
|
@ -1130,6 +1130,7 @@ endif()
|
|||
|
||||
if(BUNDLED_CJSON)
|
||||
add_library(bundled_cjson STATIC "${CMAKE_CURRENT_LIST_DIR}/cjson/cJSON.c")
|
||||
set_property(TARGET bundled_cjson PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||
target_include_directories(bundled_cjson PUBLIC "${CMAKE_CURRENT_LIST_DIR}/cjson/")
|
||||
target_compile_definitions(bundled_cjson PUBLIC BUNDLED_CJSON)
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue