diff options
| author | Brent Cook <bcook@openbsd.org> | 2016-05-02 01:58:18 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2016-05-02 01:58:18 -0500 |
| commit | a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe (patch) | |
| tree | 106c0df3da2b3032a5c01fcfebccf8d6de9c64d9 /apps/nc | |
| parent | 466e389d3f52c9e75cf4849669bca16e512ee110 (diff) | |
| parent | bda62f7fe4ad3965f8f6e7f06838c76455340567 (diff) | |
| download | portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.tar.gz portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.tar.bz2 portable-a653a67a1ee84e41e0a989ecdc54a17e32fdd6fe.zip | |
Land #189, Added extra cmake build options like autotools builds
Diffstat (limited to 'apps/nc')
| -rw-r--r-- | apps/nc/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/nc/CMakeLists.txt b/apps/nc/CMakeLists.txt index a218899..c8757a6 100644 --- a/apps/nc/CMakeLists.txt +++ b/apps/nc/CMakeLists.txt | |||
| @@ -43,6 +43,12 @@ else() | |||
| 43 | set(NC_SRC ${NC_SRC} compat/strtonum.c) | 43 | set(NC_SRC ${NC_SRC} compat/strtonum.c) |
| 44 | endif() | 44 | endif() |
| 45 | 45 | ||
| 46 | if(NOT "${OPENSSLDIR}" STREQUAL "") | ||
| 47 | add_definitions(-DDEFAULT_CA_FILE=\"${OPENSSLDIR}/cert.pem\") | ||
| 48 | else() | ||
| 49 | add_definitions(-DDEFAULT_CA_FILE=\"${CMAKE_INSTALL_PREFIX}/etc/ssl/cert.pem\") | ||
| 50 | endif() | ||
| 51 | |||
| 46 | add_executable(nc ${NC_SRC}) | 52 | add_executable(nc ${NC_SRC}) |
| 47 | target_link_libraries(nc tls ${OPENSSL_LIBS}) | 53 | target_link_libraries(nc tls ${OPENSSL_LIBS}) |
| 48 | 54 | ||
