Skip to content
Permalink
Browse files

Add CMAKE_POSITION_INDEPENDENT_CODE flag to QCA test for OSSL plugin

  • Loading branch information
dakcarto committed Nov 21, 2016
1 parent c123d3b commit eca83e3c0fbd0110e72b9fac11a7314d8e243b22
Showing with 4 additions and 1 deletion.
  1. +4 −1 cmake/QCAMacros.cmake
@@ -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
)

0 comments on commit eca83e3

Please sign in to comment.
You can’t perform that action at this time.