Possible fix for #405
This commit is contained in:
parent
07cccda17b
commit
9cfb09cd5b
1 changed files with 4 additions and 4 deletions
|
@ -113,9 +113,9 @@ ENDIF()
|
||||||
IF(Qt5Widgets_FOUND)
|
IF(Qt5Widgets_FOUND)
|
||||||
MESSAGE(STATUS "Found Qt ${Qt5Widgets_VERSION_STRING}")
|
MESSAGE(STATUS "Found Qt ${Qt5Widgets_VERSION_STRING}")
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE AND "${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64")
|
|
||||||
# FIX: Qt was built with -reduce-relocations
|
# FIX: Qt was built with -reduce-relocations
|
||||||
add_definitions(-fPIC)
|
if (Qt5_POSITION_INDEPENDENT_CODE)
|
||||||
|
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
FIND_PACKAGE(Qt5LinguistTools)
|
FIND_PACKAGE(Qt5LinguistTools)
|
||||||
|
|
Loading…
Reference in a new issue