Fix SSL detection
authorWeng Xuetian <wengxt@gmail.com>
Thu, 12 Nov 2015 00:13:33 +0000 (16:13 -0800)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 2 Jan 2016 16:39:04 +0000 (17:39 +0100)
commit72d822f3583f67252fed8544b76f8501cda7531f
treeea6d9cd3ab35a9c69aaa22c0f0fa1a1539587c28
parent79d10f90b17200eac2a977cc6ca5f70fed9da739
Fix SSL detection

CMAKE_POSITION_INDEPENDENT_CODE will always append fPIE flag as last compiler flag when calling try_compile which makes check_cxx_source_compiles fails. Move the SSL check before set CMAKE_POSITION_INDEPENDENT_CODE and append Qt5Core_EXECUTABLE_COMPILE_FLAGS to CMAKE_CXX_FLAGS solve the problem.
CMakeLists.txt