support older build systems
This commit is contained in:
parent
12ce38327f
commit
d7d19e656e
@ -1,4 +1,4 @@
|
|||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.6)
|
||||||
|
|
||||||
project(DokuWiki LANGUAGES CXX)
|
project(DokuWiki LANGUAGES CXX)
|
||||||
|
|
||||||
@ -19,6 +19,10 @@ add_library(${PROJECT_NAME}
|
|||||||
${dokuwiki_sources}
|
${dokuwiki_sources}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_target_properties(${PROJECT_NAME}
|
||||||
|
PROPERTIES CXX_STANDARD 14
|
||||||
|
)
|
||||||
|
|
||||||
target_include_directories(${PROJECT_NAME}
|
target_include_directories(${PROJECT_NAME}
|
||||||
PUBLIC
|
PUBLIC
|
||||||
include
|
include
|
||||||
@ -26,11 +30,6 @@ target_include_directories(${PROJECT_NAME}
|
|||||||
${XMLRPC_INCLUDE_DIRS}
|
${XMLRPC_INCLUDE_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_features(${PROJECT_NAME}
|
|
||||||
PUBLIC
|
|
||||||
cxx_std_17
|
|
||||||
)
|
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_NAME}
|
target_link_libraries(${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
${XMLRPC_LIBRARIES}
|
${XMLRPC_LIBRARIES}
|
||||||
|
Reference in New Issue
Block a user