Trying to fix Qt error on Ubuntu.

This commit is contained in:
nissim.hadar 2017-11-26 01:39:16 -08:00
parent 1510c4d68a
commit 9b2c057e9b

View file

@ -7,10 +7,11 @@ SET(CMAKE_AUTOMOC ON)
setup_hifi_project(Core Widgets) setup_hifi_project(Core Widgets)
link_hifi_libraries() link_hifi_libraries()
## FIX: Qt was built with -reduce-relocations
#if (Qt5_POSITION_INDEPENDENT_CODE) # FIX: Qt was built with -reduce-relocations
# SET(CMAKE_POSITION_INDEPENDENT_CODE ON) if (Qt5_POSITION_INDEPENDENT_CODE)
#endif() SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()
# Qt includes # Qt includes
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) include_directories(${CMAKE_CURRENT_SOURCE_DIR})
@ -31,7 +32,7 @@ endif()
add_executable(PROJECT_NAME ${SOURCES} ${HEADERS} ${UIS}) add_executable(PROJECT_NAME ${SOURCES} ${HEADERS} ${UIS})
target_link_libraries(${TARGET_NAME} ${QT_LIBRARIES}) target_link_libraries(PROJECT_NAME ${QT_LIBRARIES})
# Copy required dll's. # Copy required dll's.
add_custom_command(TARGET auto-tester POST_BUILD add_custom_command(TARGET auto-tester POST_BUILD