summaryrefslogtreecommitdiffstats
path: root/cmake/check_reqs.cmake
blob: ad12ca773d9e376fe374038fbfdcf766480ae250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
set(HAVE_LIBSODIUM FALSE)

get_property(nacl_required GLOBAL PROPERTY NACL_REQUIRED)
if(${nacl_required})
  if("${NACL_LIBRARIES}" STREQUAL "")
    message(FATAL_ERROR "NaCl is not available, but a selected module needs it")
  endif()

  if(USE_LIBSODIUM)
    set(HAVE_LIBSODIUM TRUE)
  endif(USE_LIBSODIUM)
endif(${nacl_required})