io-adapter-dbus: fix for PIC issue
@@ -13,8 +13,8 @@ if (DBUS_FOUND)
add_library (${ADAPTER_OBJECT} OBJECT ${SOURCES})
target_include_directories (${ADAPTER_OBJECT} SYSTEM PUBLIC ${DBUS_INCLUDE_DIR} ${DBUS_ARCH_INCLUDE_DIR})
+ # NOTE CMAKE_POSITION_INDEPENDENT_CODE does not seem to work (e.g. CMake 3.9.2 on Travis)
target_compile_options(${ADAPTER_OBJECT} PRIVATE "-fPIC")
- #set_property (TARGET ${ADAPTER_OBJECT} PROPERTY CMAKE_POSITION_INDEPENDENT_CODE ON)
-
+ set_property (TARGET ${ADAPTER_OBJECT} PROPERTY CMAKE_POSITION_INDEPENDENT_CODE ON)
endif ()
