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
21d75fa4
Commit
21d75fa4
authored
Oct 04, 2019
by
Fatih YAZICI
Committed by
Jesse Beder
Oct 04, 2019
Browse files
Fix CMake 3.10 and below compatibility (#763)
Add empty list of sources to add_library and add_executable.
parent
84809112
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
CMakeLists.txt
+1
-1
test/CMakeLists.txt
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