support older build systems

main
mandlm 2018-03-31 22:16:02 +02:00
parent 12ce38327f
commit d7d19e656e
1 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.6)
project(DokuWiki LANGUAGES CXX)
@ -19,6 +19,10 @@ add_library(${PROJECT_NAME}
${dokuwiki_sources}
)
set_target_properties(${PROJECT_NAME}
PROPERTIES CXX_STANDARD 14
)
target_include_directories(${PROJECT_NAME}
PUBLIC
include
@ -26,11 +30,6 @@ target_include_directories(${PROJECT_NAME}
${XMLRPC_INCLUDE_DIRS}
)
target_compile_features(${PROJECT_NAME}
PUBLIC
cxx_std_17
)
target_link_libraries(${PROJECT_NAME}
PRIVATE
${XMLRPC_LIBRARIES}