Change-Id: I5785a2348e731fea5b070395d135c48bbb841bc8
AUX_SOURCE_DIRECTORY(${CMAKE_CURRENT_SOURCE_DIR} TOOLS_SRCS)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../)
+SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
+
ADD_EXECUTABLE(${CAPMGR_TEST} ${TOOLS_SRCS})
APPLY_PKG_CONFIG(${CAPMGR_TEST} PUBLIC
Boost
)
-TARGET_LINK_LIBRARIES(${CAPMGR_TEST} PUBLIC ${TARGET_LIB_CAPMGR})
+TARGET_LINK_LIBRARIES(${CAPMGR_TEST} PUBLIC ${TARGET_LIB_CAPMGR} "-pie")
INSTALL(TARGETS ${CAPMGR_TEST} DESTINATION bin)