From: martin Date: Mon, 6 Jun 2016 22:37:22 +0000 (+0200) Subject: Fix the SSL check with Qt 5.6 and GCC 5 (#199) X-Git-Tag: travis-deploy-test~489 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=4768c9e99f99b581d4e32e797db91d0182391696;ds=sidebyside Fix the SSL check with Qt 5.6 and GCC 5 (#199) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d89a300a..d238691a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -438,6 +438,11 @@ endif() cmake_push_check_state(RESET) set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}") + +if (USE_QT5 AND Qt5_POSITION_INDEPENDENT_CODE) + set(CMAKE_REQUIRED_FLAGS "-fPIC -DQT_NO_VERSION_TAGGING") +endif() + check_cxx_source_compiles(" #include \"qglobal.h\" #if defined QT_NO_SSL