We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b8ad4 commit fa2f20fCopy full SHA for fa2f20f
olp-cpp-sdk-core/cmake/curl.cmake
@@ -40,14 +40,14 @@ if(CURL_FOUND AND NOT NETWORK_NO_CURL)
40
add_definitions(-DENABLE_CURL_VERBOSE)
41
endif()
42
43
- include(CheckFunctionExists)
+ include(CheckSymbolExists)
44
add_definitions(-DNETWORK_HAS_UNISTD_H=1)
45
- check_function_exists("pipe" HAS_PIPE)
46
- if(HAS_PIPE)
+ check_symbol_exists(pipe "unistd.h" OLP_SDK_HAS_PIPE)
+ if(OLP_SDK_HAS_PIPE)
47
add_definitions(-DNETWORK_HAS_PIPE=1)
48
49
- check_function_exists("pipe2" HAS_PIPE2)
50
- if(HAS_PIPE2)
+ check_symbol_exists(pipe2 "unistd.h" OLP_SDK_HAS_PIPE2)
+ if(OLP_SDK_HAS_PIPE2)
51
add_definitions(-DNETWORK_HAS_PIPE2=1)
52
53
0 commit comments