aboutsummaryrefslogtreecommitdiff
path: root/net/httping/patches/004-fix-cmake.patch
blob: 9618572962e2f51deff98cb3007af02b9bce628f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,16 +34,21 @@ target_link_libraries(httping m)
 
 include(FindPkgConfig)
 
+if (ENABLE_NCURSES)
 pkg_check_modules(NCURSES ncurses)
 target_link_libraries(httping ${NCURSES_LIBRARIES})
 target_include_directories(httping PUBLIC ${NCURSES_INCLUDE_DIRS})
 target_compile_options(httping PUBLIC ${NCURSES_CFLAGS_OTHER})
+endif()
 
+if (ENABLE_FFTW3)
 pkg_check_modules(FFTW3 fftw3)
 target_link_libraries(httping ${FFTW3_LIBRARIES})
 target_include_directories(httping PUBLIC ${FFTW3_INCLUDE_DIRS})
 target_compile_options(httping PUBLIC ${FFTW3_CFLAGS_OTHER})
+endif()
 
+if (ENABLE_SSL)
 pkg_check_modules(SSL libssl)
 target_link_libraries(httping ${SSL_LIBRARIES})
 target_include_directories(httping PUBLIC ${SSL_INCLUDE_DIRS})
@@ -53,6 +58,7 @@ pkg_check_modules(OPENSSL openssl)
 target_link_libraries(httping ${OPENSSL_LIBRARIES})
 target_include_directories(httping PUBLIC ${OPENSSL_INCLUDE_DIRS})
 target_compile_options(httping PUBLIC ${OPENSSL_CFLAGS_OTHER})
+endif()
 
 execute_process (
     COMMAND bash -c "msgfmt -o nl.mo ${CMAKE_SOURCE_DIR}/nl.po"