Skip to content

Commit ab8e7ea

Browse files
committed
Added -DPIC option on shared library.
1 parent 6daef66 commit ab8e7ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ IF (MSGPACK_BUILD_TESTS)
146146
ENDIF ()
147147

148148
IF (CMAKE_COMPILER_IS_GNUCC)
149-
SET_PROPERTY (TARGET msgpack APPEND_STRING PROPERTY COMPILE_FLAGS -Wall )
149+
SET_PROPERTY (TARGET msgpack APPEND_STRING PROPERTY COMPILE_FLAGS "-Wall -DPIC")
150150
SET_PROPERTY (TARGET msgpack-static APPEND_STRING PROPERTY COMPILE_FLAGS -Wall )
151151
ENDIF ()
152152
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")

0 commit comments

Comments
 (0)