fixed a bug that it incorrect support expat/jsoncpp in vcpkg.
This commit is contained in:
parent
13b5a7347e
commit
4734a558a1
@ -28,6 +28,7 @@ if(CM_UTIL_SUPPORT_XML)
|
||||
SOURCE_GROUP("XML\\ElementParse\\Creater" FILES ${XML_ELEMENT_PARSE_CREATER})
|
||||
SOURCE_GROUP("XML\\ElementParse" FILES ${XML_ELEMENT_PARSE_SOURCE})
|
||||
SOURCE_GROUP("XML" FILES ${XML_PARSE_CLASS_SOURCE})
|
||||
|
||||
endif(CM_UTIL_SUPPORT_XML)
|
||||
|
||||
option(CM_UTIL_SUPPORT_JSON "Build JSON Parse/make module." ON)
|
||||
@ -79,3 +80,11 @@ add_cm_library(CMUtil "CM" ${CMD_SOURCE}
|
||||
${HASH_HEADER_FILES}
|
||||
${HASH_SOURCE_FILES}
|
||||
)
|
||||
|
||||
if(CM_UTIL_SUPPORT_XML)
|
||||
target_link_libraries(CMUtil PRIVATE expat::expat)
|
||||
endif()
|
||||
|
||||
IF(CM_UTIL_SUPPORT_JSON)
|
||||
target_link_libraries(CMUtil PRIVATE jsoncpp_lib jsoncpp_object JsonCpp::JsonCpp)
|
||||
ENDIF(CM_UTIL_SUPPORT_JSON)
|
Loading…
x
Reference in New Issue
Block a user