mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 12:21:17 +00:00
Fix CMake 3.10 and below compatibility (#763)
Add empty list of sources to add_library and add_executable.
This commit is contained in:

committed by
Jesse Beder

parent
848091124d
commit
21d75fa4cd
@@ -61,7 +61,7 @@ set(msvc-rt-mt-dll $<STREQUAL:${msvc-rt},MultiThreadedDLL>)
|
||||
|
||||
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)
|
||||
|
||||
set_property(TARGET yaml-cpp
|
||||
|
@@ -20,7 +20,7 @@ endif()
|
||||
file(GLOB test-new-api-sources ${test-new-api-pattern})
|
||||
file(GLOB test-sources ${test-source-pattern})
|
||||
|
||||
add_executable(yaml-cpp-tests)
|
||||
add_executable(yaml-cpp-tests "")
|
||||
target_sources(yaml-cpp-tests
|
||||
PRIVATE
|
||||
${test-new-api-sources}
|
||||
|
Reference in New Issue
Block a user