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)
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.


No differences found