Set CMake policy CMP0079 when version >= 3.13

This commit is contained in:
Paul Romano 2019-09-03 22:30:22 -05:00
parent 56322b9b3f
commit 1134b18cb9

View file

@ -120,6 +120,11 @@ target_include_directories(pugixml PUBLIC vendor/pugixml/)
# xtensor header-only library
#===============================================================================
# CMake 3.13+ will complain about policy CMP0079 unless it is set explicitly
if (NOT (CMAKE_VERSION VERSION_LESS 3.13))
cmake_policy(SET CMP0079 NEW)
endif()
add_subdirectory(vendor/xtl)
add_subdirectory(vendor/xtensor)
target_link_libraries(xtensor INTERFACE xtl)