Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
fix compilation on older cmakes
  • Loading branch information
AzothAmmo committed Dec 26, 2015
1 parent 7b10a08 commit 1ef6415
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1ef6415

Please sign in to comment.