diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b0d5ea0..c44e876 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -196,6 +196,11 @@ add_test(mont mont) | |||
196 | 196 | ||
197 | # ocsp_test | 197 | # ocsp_test |
198 | if(ENABLE_EXTRATESTS) | 198 | if(ENABLE_EXTRATESTS) |
199 | if(NOT "${OPENSSLDIR}" STREQUAL "") | ||
200 | add_definitions(-D_PATH_SSL_CA_FILE=\"${OPENSSLDIR}/cert.pem\") | ||
201 | else() | ||
202 | add_definitions(-D_PATH_SSL_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") | ||
203 | endif() | ||
199 | add_executable(ocsp_test ocsp_test.c) | 204 | add_executable(ocsp_test ocsp_test.c) |
200 | target_link_libraries(ocsp_test ${OPENSSL_LIBS}) | 205 | target_link_libraries(ocsp_test ${OPENSSL_LIBS}) |
201 | add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) | 206 | add_test(ocsptest ${CMAKE_CURRENT_SOURCE_DIR}/ocsptest.sh) |