Fix SSL detection 157/head
authorWeng Xuetian <wengxt@gmail.com>
Thu, 12 Nov 2015 00:13:33 +0000 (16:13 -0800)
committerWeng Xuetian <wengxt@gmail.com>
Thu, 12 Nov 2015 00:13:33 +0000 (16:13 -0800)
commitd6ee316170f0362e8052d39118671fb36f3c8abf
tree5e5e66d655f0431dcca55068135b4aca993c8b1d
parentb49c64970b6237fc95f8ca88c8bb6bcf04c251d7
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