aboutsummaryrefslogtreecommitdiff
path: root/apps/nc/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'apps/nc/CMakeLists.txt')
-rw-r--r--apps/nc/CMakeLists.txt17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt
index 7bbdb02..b1eed1b 100644
--- a/apps/nc/CMakeLists.txt
+++ b/apps/nc/CMakeLists.txt
@@ -1,3 +1,18 @@
1#
2# Copyright (c) 2016 Kinichiro Inoguchi
3#
4# Permission to use, copy, modify, and distribute this software for any
5# purpose with or without fee is hereby granted, provided that the above
6# copyright notice and this permission notice appear in all copies.
7#
8# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
1if(BUILD_NC) 16if(BUILD_NC)
2 17
3set( 18set(
@@ -22,7 +37,7 @@ else()
22 set(NC_SRC ${NC_SRC} compat/accept4.c) 37 set(NC_SRC ${NC_SRC} compat/accept4.c)
23endif() 38endif()
24 39
25check_function_exists(readpassphrase HAVE_READPASSPHRASE) 40check_symbol_exists(readpassphrase "readpassphrase.h" HAVE_READPASSPHRASE)
26if(HAVE_READPASSPHRASE) 41if(HAVE_READPASSPHRASE)
27 add_definitions(-DHAVE_READPASSPHRASE) 42 add_definitions(-DHAVE_READPASSPHRASE)
28else() 43else()