File: check_reqs.cmake

package info (click to toggle)
fastd 18-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,816 kB
  • ctags: 5,120
  • sloc: asm: 15,114; ansic: 9,478; sh: 614; yacc: 558; makefile: 168; python: 33; perl: 11
file content (22 lines) | stat: -rw-r--r-- 669 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set(HAVE_LIBSODIUM FALSE)

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

  if(ENABLE_LIBSODIUM)
    set(HAVE_LIBSODIUM TRUE)
  endif(ENABLE_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})