diff options
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 | ||