Navigation Menu

Skip to content

Commit

Permalink
Add CMAKE_POSITION_INDEPENDENT_CODE flag to QCA test for OSSL plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dakcarto committed Nov 21, 2016
1 parent c123d3b commit eca83e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/QCAMacros.cmake
Expand Up @@ -44,7 +44,10 @@ function(FIND_QCAOSSL_PLUGIN_CPP PLUGIN_REQUIRED)

try_run(RUN_RESULT COMPILE_RESULT
${CMAKE_BINARY_DIR} ${TESTCPP}
CMAKE_FLAGS "-DCMAKE_CXX_STANDARD=11" "${QCA_INCLUDE_DIRECTORIES}" "${QCA_LINK_LIBRARIES}"
CMAKE_FLAGS "-DCMAKE_CXX_STANDARD=11"
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON"
"${QCA_INCLUDE_DIRECTORIES}"
"${QCA_LINK_LIBRARIES}"
COMPILE_OUTPUT_VARIABLE COMPILE_OUTPUT
)

Expand Down

0 comments on commit eca83e3

Please sign in to comment.