if(CRYPTOPP_FOUND)
MESSAGE(STATUS "${CRYPTOPP_LIBRARIES}")
set(CRYPTO_LIBS ${CRYPTOPP_LIBRARIES})
- set(USE_NSS 0)
+ set(USE_NSS 0)
else()
- MESSAGE(STATUS "Cryptopp not here using NSS instead")
- set(USE_NSS 1)
- MESSAGE(STATUS "${NSS_LIBRARIES}")
+ MESSAGE(STATUS "Cryptopp not found using NSS instead")
find_package(NSS)
if(NSS_FOUND)
- MESSAGE(STATUS "${NSS_LIBRARIES}")
- #It is known to be false why the test
- if(NOT CRYPTOPP_FOUND)
- set(CRYPTO_LIBS ${NSS_LIBRARIES})
- add_definitions(-DUSE_NSS)
- endif(NOT CRYPTOPP_FOUND)
+ set(USE_NSS 1)
+ set(USE_CRYPTOPP 0)
+ find_package(NSPR)
+ if(NSPR_FOUND)
+ set(CRYPTO_LIBS ${NSS_LIBRARIES} ${NSPR_LIBRARIES})
+ #MESSAGE(STATUS "${CRYPTO_LIBS}")
+ #MESSAGE(STATUS "${NSS_INCLUDE_DIR} ${NSPR_INCLUDE_DIR}")
+ endif(NSPR_FOUND)
endif(NSS_FOUND)
endif(CRYPTOPP_FOUND)