Skip to content

Commit fa2f20f

Browse files
Bohdan Kurylovychborzun
authored andcommitted
Changed check_function_exists on check_symbol_exists in curl.cmake
Replaced the check_function_exists usage with check_symbol_exists in olp-cpp-sdk-core/cmake/curl.cmake. Resolves: OLPSUP-8788 Signed-off-by: Yauheni Khnykin <[email protected]> Signed-off-by: Bohdan Kurylovych <[email protected]>
1 parent 66b8ad4 commit fa2f20f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

olp-cpp-sdk-core/cmake/curl.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ if(CURL_FOUND AND NOT NETWORK_NO_CURL)
4040
add_definitions(-DENABLE_CURL_VERBOSE)
4141
endif()
4242

43-
include(CheckFunctionExists)
43+
include(CheckSymbolExists)
4444
add_definitions(-DNETWORK_HAS_UNISTD_H=1)
45-
check_function_exists("pipe" HAS_PIPE)
46-
if(HAS_PIPE)
45+
check_symbol_exists(pipe "unistd.h" OLP_SDK_HAS_PIPE)
46+
if(OLP_SDK_HAS_PIPE)
4747
add_definitions(-DNETWORK_HAS_PIPE=1)
4848
endif()
49-
check_function_exists("pipe2" HAS_PIPE2)
50-
if(HAS_PIPE2)
49+
check_symbol_exists(pipe2 "unistd.h" OLP_SDK_HAS_PIPE2)
50+
if(OLP_SDK_HAS_PIPE2)
5151
add_definitions(-DNETWORK_HAS_PIPE2=1)
5252
endif()
5353

0 commit comments

Comments
 (0)