From 1ef6415f156e65c2f1513a0743874ad5e3f4f106 Mon Sep 17 00:00:00 2001 From: Shane Grant Date: Fri, 25 Dec 2015 20:12:24 -0800 Subject: [PATCH] Update CMakeLists.txt fix compilation on older cmakes --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d6e6b4afc..5fcf05a3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,5 +36,7 @@ if(DOXYGEN_FOUND) endif(DOXYGEN_FOUND) -add_library(cereal INTERFACE) -target_include_directories( cereal INTERFACE include ) +if("${CMAKE_VERSION}" VERSION_GREATER 2.8.10) + add_library(cereal INTERFACE) + target_include_directories( cereal INTERFACE include ) # added in 2.8.11 +endif()