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

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