Skip to content

Commit

Permalink
CMake - fix check for NSS
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Gryniewicz <[email protected]>
  • Loading branch information
dang committed Sep 23, 2015
1 parent b02e0f9 commit dcf647e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ if(CRYPTOPP_FOUND)
set(USE_NSS 0)
else()
MESSAGE(STATUS "Cryptopp not found using NSS instead")
find_package(NSS)
find_package(NSS REQUIRED)
if(NSS_FOUND)
set(USE_NSS 1)
set(USE_CRYPTOPP 0)
Expand Down
4 changes: 3 additions & 1 deletion cmake/modules/FindNSS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ else (NSS_LIBRARIES AND NSS_INCLUDE_DIRS)

find_path(NSS_INCLUDE_DIR
NAMES
nss.h
pk11pub.h
PATHS
${_NSS_INCLUDEDIR}
/usr/include
Expand Down Expand Up @@ -114,6 +114,8 @@ else (NSS_LIBRARIES AND NSS_INCLUDE_DIRS)
endif (NSSUTIL3_LIBRARY)

include(FindPackageHandleStandardArgs)
message(STATUS "NSS_LIBRARIES: ${NSS_LIBRARIES}")
message(STATUS "NSS_INCLUDE_DIRS: ${NSS_INCLUDE_DIRS}")
find_package_handle_standard_args(NSS DEFAULT_MSG NSS_LIBRARIES NSS_INCLUDE_DIRS)

# show the NSS_INCLUDE_DIRS and NSS_LIBRARIES variables only in the advanced view
Expand Down

0 comments on commit dcf647e

Please sign in to comment.