Fix CMake 3.10 and below compatibility (#763)

Add empty list of sources to add_library and add_executable.
This commit is contained in:
Fatih YAZICI
2019-10-04 22:46:18 +03:00
committed by Jesse Beder
parent 848091124d
commit 21d75fa4cd
2 changed files with 2 additions and 2 deletions

View File

@@ -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