Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yaml-cpp
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
Service Desk
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
Third Party Mirrors
yaml-cpp
Commits
4fa9cee5
Commit
4fa9cee5
authored
5 years ago
by
Jason Hiser
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:jbeder/yaml-cpp
parents
db60c506
d638508d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+6
-11
6 additions, 11 deletions
CMakeLists.txt
test/CMakeLists.txt
+5
-0
5 additions, 0 deletions
test/CMakeLists.txt
util/CMakeLists.txt
+12
-0
12 additions, 0 deletions
util/CMakeLists.txt
with
23 additions
and
11 deletions
CMakeLists.txt
+
6
−
11
View file @
4fa9cee5
...
...
@@ -9,13 +9,7 @@ include(CheckCXXCompilerFlag)
###
### Project settings
###
project
(
YAML_CPP
)
set
(
YAML_CPP_VERSION_MAJOR
"0"
)
set
(
YAML_CPP_VERSION_MINOR
"6"
)
set
(
YAML_CPP_VERSION_PATCH
"2"
)
set
(
YAML_CPP_VERSION
"
${
YAML_CPP_VERSION_MAJOR
}
.
${
YAML_CPP_VERSION_MINOR
}
.
${
YAML_CPP_VERSION_PATCH
}
"
)
project
(
YAML_CPP VERSION 0.6.2
)
###
### Project options
...
...
@@ -32,10 +26,6 @@ option(YAML_CPP_INSTALL "Enable generation of install target" ON)
# http://www.cmake.org/cmake/help/cmake2.6docs.html#command:add_library
option
(
BUILD_SHARED_LIBS
"Build Shared Libraries"
OFF
)
# Set minimum C++ to 2011 standards
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
# --> Apple
option
(
APPLE_UNIVERSAL_BIN
"Apple: Build universal binary"
OFF
)
...
...
@@ -267,6 +257,11 @@ if (NOT CMAKE_VERSION VERSION_LESS 2.8.12)
PRIVATE $<BUILD_INTERFACE:
${
YAML_CPP_SOURCE_DIR
}
/src>
)
endif
()
set_target_properties
(
yaml-cpp PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
)
set_target_properties
(
yaml-cpp PROPERTIES
COMPILE_FLAGS
"
${
yaml_c_flags
}
${
yaml_cxx_flags
}
"
)
...
...
This diff is collapsed.
Click to expand it.
test/CMakeLists.txt
+
5
−
0
View file @
4fa9cee5
...
...
@@ -51,6 +51,11 @@ add_executable(run-tests
${
test_headers
}
)
set_target_properties
(
run-tests PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
)
add_dependencies
(
run-tests googletest_project
)
set_target_properties
(
run-tests PROPERTIES
...
...
This diff is collapsed.
Click to expand it.
util/CMakeLists.txt
+
12
−
0
View file @
4fa9cee5
...
...
@@ -2,13 +2,25 @@ cmake_minimum_required(VERSION 3.5)
add_sources
(
parse.cpp
)
add_executable
(
parse parse.cpp
)
set_target_properties
(
parse PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
)
target_link_libraries
(
parse yaml-cpp
)
add_sources
(
sandbox.cpp
)
add_executable
(
sandbox sandbox.cpp
)
set_target_properties
(
sandbox PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
)
target_link_libraries
(
sandbox yaml-cpp
)
add_sources
(
read.cpp
)
add_executable
(
read read.cpp
)
set_target_properties
(
read PROPERTIES
CXX_STANDARD 11
CXX_STANDARD_REQUIRED ON
)
target_link_libraries
(
read yaml-cpp
)
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