mirror of
https://github.com/pocoproject/poco.git
synced 2025-03-04 19:13:30 +01:00
Merge pull request #821 from Gamadril/poco-1.6.1
Fixed issue #705 Error building with ENABLE_UTIL=ON and ENABLE_XML=OFF
This commit is contained in:
commit
c5dca8e3ff
@ -24,7 +24,18 @@ set_target_properties( "${LIBNAME}"
|
||||
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}"
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||
|
Loading…
x
Reference in New Issue
Block a user