Increase the minimum CMake version to 2.8.12

This is a followup to 198900eff4.

target_include_directories was introduced in 2.8.12, thus CMake 2.6 no
longer works.
This commit is contained in:
Arseny Kapoulkine 2017-06-14 23:06:32 -07:00
parent 38edf255ae
commit 52da6f71d0

View file

@ -1,6 +1,6 @@
project(pugixml)
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 2.8.12)
option(BUILD_SHARED_LIBS "Build shared instead of static library" OFF)
option(BUILD_TESTS "Build tests" OFF)
@ -79,4 +79,4 @@ if(BUILD_TESTS)
add_executable(check ${TEST_SOURCES})
target_link_libraries(check pugixml)
add_custom_command(TARGET check POST_BUILD COMMAND check WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
endif()
endif()