Added the option to disable dynamic library and build static instead
It's useful for some platform (e.g. iOS) to build the validator as a static lib instead of dynamic.
This commit is contained in:
parent
378105024e
commit
f29d88d3bd
@ -26,10 +26,17 @@ if(NOT TARGET json-hpp)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# and one for the validator
|
# and one for the validator
|
||||||
add_library(json-schema-validator SHARED
|
if (JSON_SCHEMA_VALIDATOR_DISABLE_SHARED)
|
||||||
|
add_library(json-schema-validator STATIC
|
||||||
src/json-schema-draft4.json.cpp
|
src/json-schema-draft4.json.cpp
|
||||||
src/json-uri.cpp
|
src/json-uri.cpp
|
||||||
src/json-validator.cpp)
|
src/json-validator.cpp)
|
||||||
|
else()
|
||||||
|
add_library(json-schema-validator SHARED
|
||||||
|
src/json-schema-draft4.json.cpp
|
||||||
|
src/json-uri.cpp
|
||||||
|
src/json-validator.cpp)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_include_directories(json-schema-validator
|
target_include_directories(json-schema-validator
|
||||||
PUBLIC
|
PUBLIC
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user