Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
21d75fa4
Commit
21d75fa4
authored
Oct 04, 2019
by
Fatih YAZICI
Committed by
Jesse Beder
Oct 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CMake 3.10 and below compatibility (#763)
Add empty list of sources to add_library and add_executable.
parent
84809112
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
+1
-1
test/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
21d75fa4
...
@@ -61,7 +61,7 @@ set(msvc-rt-mt-dll $<STREQUAL:${msvc-rt},MultiThreadedDLL>)
...
@@ -61,7 +61,7 @@ set(msvc-rt-mt-dll $<STREQUAL:${msvc-rt},MultiThreadedDLL>)
set
(
backport-msvc-runtime $<VERSION_LESS:
${
CMAKE_VERSION
}
,3.15>
)
set
(
backport-msvc-runtime $<VERSION_LESS:
${
CMAKE_VERSION
}
,3.15>
)
add_library
(
yaml-cpp
${
yaml-cpp-type
}
)
add_library
(
yaml-cpp
${
yaml-cpp-type
}
""
)
add_library
(
yaml::yaml ALIAS yaml-cpp
)
add_library
(
yaml::yaml ALIAS yaml-cpp
)
set_property
(
TARGET yaml-cpp
set_property
(
TARGET yaml-cpp
...
...
test/CMakeLists.txt
View file @
21d75fa4
...
@@ -20,7 +20,7 @@ endif()
...
@@ -20,7 +20,7 @@ endif()
file
(
GLOB test-new-api-sources
${
test-new-api-pattern
}
)
file
(
GLOB test-new-api-sources
${
test-new-api-pattern
}
)
file
(
GLOB test-sources
${
test-source-pattern
}
)
file
(
GLOB test-sources
${
test-source-pattern
}
)
add_executable
(
yaml-cpp-tests
)
add_executable
(
yaml-cpp-tests
""
)
target_sources
(
yaml-cpp-tests
target_sources
(
yaml-cpp-tests
PRIVATE
PRIVATE
${
test-new-api-sources
}
${
test-new-api-sources
}
...
...
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