Commit d75ba452 authored by Fabian Kosmale's avatar Fabian Kosmale

require CMake 3.0

use modern way to check if doc target already exist
parent 45f1b0ed
project(akabeicore)
cmake_minimum_required(VERSION 2.6.0)
cmake_minimum_required(VERSION 3.0.0)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules")
# Compiles with debugging symbols (Debug mode)
......
......@@ -167,8 +167,7 @@ if(DOXYGEN_FOUND AND DOXYFILE_IN_FOUND)
configure_file("${DOXYFILE_IN}" "${DOXYFILE}" @ONLY)
get_target_property(DOC_TARGET doc TYPE)
if(NOT DOC_TARGET)
if(NOT TARGET doc)
add_custom_target(doc)
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment