Make sure -fPIE is added to the compile flags.

Change-Id: I279881693b6eba15a2e145742b3281c9425e9b2e
Reviewed-by: Alexander Neundorf <neundorf@kde.org>
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Stephen Kelly 2012-04-20 11:46:40 +02:00 committed by Qt by Nokia
parent 2dff7ad9e8
commit 57482b930f

View File

@ -13,6 +13,8 @@ include_directories(
add_definitions(${Qt5Core_DEFINITIONS} ${Qt5DBus_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(my_srcs mydbusobject.cpp)