summaryrefslogtreecommitdiffstats
path: root/cmake/check_reqs.cmake
blob: 8f41285a7a21f26351886c3519e01c5d6c7cd87f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
else(${nacl_required})
  set(NACL_INCLUDE_DIRS "")
  set(NACL_CFLAGS_OTHER "")
  set(NACL_LIBRARY_DIRS "")
  set(NACL_LIBRARIES "")
  set(NACL_LDFLAGS_OTHER "")
endif(${nacl_required})