Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coeurl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Nheko Reborn
coeurl
Commits
6e8f817e
Verified
Commit
6e8f817e
authored
2 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Properly warn when CMake buildfiles are used
parent
f989f3c5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+6
-1
6 additions, 1 deletion
CMakeLists.txt
with
6 additions
and
1 deletion
CMakeLists.txt
+
6
−
1
View file @
6e8f817e
...
...
@@ -24,12 +24,17 @@ option(USE_BUNDLED_LIBEVENT "Use the bundled version of spdlog." ${HUNTER_ENABLE
option
(
USE_BUNDLED_LIBCURL
"Use the bundled version of spdlog."
${
HUNTER_ENABLED
}
)
option
(
USE_BUNDLED_SPDLOG
"Use the bundled version of spdlog."
${
HUNTER_ENABLED
}
)
project
(
coeurl
VERSION 0.3.0
DESCRIPTION
"Simple library to do http requests asynchronously via CURL in C++."
HOMEPAGE_URL
"https://nheko.im/nheko-reborn/cocurl"
)
if
(
CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR
)
message
(
STATUS
${
CMAKE_SOURCE_DIR
}
)
message
(
STATUS
${
CMAKE_CURRENT_SOURCE_DIR
}
)
message
(
FATAL_ERROR
"The CMake build for coeurl is not intended for installation or usage outside of FetchContent."
)
endif
()
add_library
(
coeurl lib/client.cpp lib/request.cpp lib/errors.cpp
)
add_library
(
coeurl::coeurl ALIAS coeurl
)
target_include_directories
(
coeurl PUBLIC
...
...
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