Skip to content

Commit

Permalink
compile with position independent code
Browse files Browse the repository at this point in the history
  • Loading branch information
Cylix committed Dec 6, 2017
1 parent 4fc6670 commit f390eef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ configure_file("cpp_redis.pc.in" "${CMAKE_PKGCONFIG_OUTPUT_DIRECTORY}/cpp_redis.
# executable
###
add_library(${PROJECT} ${SOURCES})
set_property(TARGET ${PROJECT} PROPERTY POSITION_INDEPENDENT_CODE ON)

if(WIN32)
set_target_properties(${PROJECT}
Expand Down
2 changes: 1 addition & 1 deletion tacopie

0 comments on commit f390eef

Please sign in to comment.