mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Trying to fix Qt error on Ubuntu.
This commit is contained in:
parent
1510c4d68a
commit
9b2c057e9b
1 changed files with 6 additions and 5 deletions
|
@ -7,10 +7,11 @@ SET(CMAKE_AUTOMOC ON)
|
|||
|
||||
setup_hifi_project(Core Widgets)
|
||||
link_hifi_libraries()
|
||||
## FIX: Qt was built with -reduce-relocations
|
||||
#if (Qt5_POSITION_INDEPENDENT_CODE)
|
||||
# SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
#endif()
|
||||
|
||||
# FIX: Qt was built with -reduce-relocations
|
||||
if (Qt5_POSITION_INDEPENDENT_CODE)
|
||||
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
|
||||
# Qt includes
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
@ -31,7 +32,7 @@ endif()
|
|||
|
||||
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.
|
||||
add_custom_command(TARGET auto-tester POST_BUILD
|
||||
|
|
Loading…
Reference in a new issue