Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
b38ac5b5
Commit
b38ac5b5
authored
Aug 21, 2024
by
Cristian Le
Committed by
Jesse Beder
Aug 21, 2024
Browse files
Use FetchContent_MakeAvailable
parent
7b469b42
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
README.md
README.md
+1
-7
No files found.
README.md
View file @
b38ac5b5
...
...
@@ -61,13 +61,7 @@ FetchContent_Declare(
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
GIT_TAG <tag_name>
# Can be a tag (yaml-cpp-x.x.x), a commit hash, or a branch name (master)
)
FetchContent_GetProperties
(
yaml-cpp
)
if
(
NOT yaml-cpp_POPULATED
)
message
(
STATUS
"Fetching yaml-cpp..."
)
FetchContent_Populate
(
yaml-cpp
)
add_subdirectory
(
${
yaml-cpp_SOURCE_DIR
}
${
yaml-cpp_BINARY_DIR
}
)
endif
()
FetchContent_MakeAvailable
(
yaml-cpp
)
target_link_libraries
(
YOUR_LIBRARY PUBLIC yaml-cpp::yaml-cpp
)
# The library or executable that require yaml-cpp library
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment