Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
3c45295e
Commit
3c45295e
authored
14 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
ENH: add autodetection of curlmulti capabilities
parent
ef07174f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMake/TestCurlMulti.cxx
+11
-0
11 additions, 0 deletions
CMake/TestCurlMulti.cxx
CMakeLists.txt
+8
-3
8 additions, 3 deletions
CMakeLists.txt
with
19 additions
and
3 deletions
CMake/TestCurlMulti.cxx
0 → 100644
+
11
−
0
View file @
3c45295e
#include
"curl/curl.h"
#include
<iostream>
int
main
(
int
argc
,
char
*
argv
[])
{
CURLM
*
multiHandle
;
multiHandle
=
curl_multi_init
();
curl_multi_cleanup
(
multiHandle
);
return
0
;
}
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
8
−
3
View file @
3c45295e
...
...
@@ -367,9 +367,14 @@ IF(OTB_USE_CURL)
INCLUDE_DIRECTORIES
(
${
CURL_INCLUDE_DIR
}
)
# TODO add test to check if curl multi is available
OPTION
(
OTB_CURL_MULTI_AVAILABLE
"Whether or not the curl has curlmulti capabilities"
ON
)
MARK_AS_ADVANCED
(
OTB_CURL_MULTI_AVAILABLE
)
ADD_DEFINITIONS
(
-DOTB_CURL_MULTI_AVAILABLE
)
TRY_COMPILE
(
OTB_CURL_MULTI_AVAILABLE
${
CMAKE_CURRENT_BINARY_DIR
}
/CMake
${
CMAKE_CURRENT_SOURCE_DIR
}
/CMake/TestCurlMulti.cxx
CMAKE_FLAGS
"-DINCLUDE_DIRECTORIES:PATH=
${
CURL_INCLUDE_DIR
}
"
"-DLINK_LIBRARIES:STRING=
${
CURL_LIBRARY
}
"
OUTPUT_VARIABLE OUTPUT
)
IF
(
OTB_CURL_MULTI_AVAILABLE
)
ADD_DEFINITIONS
(
-DOTB_CURL_MULTI_AVAILABLE
)
ENDIF
(
OTB_CURL_MULTI_AVAILABLE
)
ENDIF
(
OTB_USE_CURL
)
#-------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment