mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-29 23:42:39 +02:00
Fixed issue #705 Error building with ENABLE_UTIL=ON and ENABLE_XML=OFF
This commit is contained in:
parent
3553a86d60
commit
dc402085e8
@ -24,7 +24,18 @@ set_target_properties( "${LIBNAME}"
|
|||||||
DEFINE_SYMBOL Util_EXPORTS
|
DEFINE_SYMBOL Util_EXPORTS
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries( "${LIBNAME}" JSON XML Foundation)
|
target_link_libraries( "${LIBNAME}" Foundation)
|
||||||
|
if (ENABLE_XML)
|
||||||
|
target_link_libraries( "${LIBNAME}" XML)
|
||||||
|
else ()
|
||||||
|
add_definitions( -DPOCO_UTIL_NO_XMLCONFIGURATION )
|
||||||
|
endif()
|
||||||
|
if (ENABLE_JSON)
|
||||||
|
target_link_libraries( "${LIBNAME}" JSON)
|
||||||
|
else ()
|
||||||
|
add_definitions( -DPOCO_UTIL_NO_JSONCONFIGURATION )
|
||||||
|
endif()
|
||||||
|
|
||||||
target_include_directories( "${LIBNAME}"
|
target_include_directories( "${LIBNAME}"
|
||||||
PUBLIC
|
PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user