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()
|
||||
|
||||
# and one for the validator
|
||||
if (JSON_SCHEMA_VALIDATOR_DISABLE_SHARED)
|
||||
add_library(json-schema-validator STATIC
|
||||
src/json-schema-draft4.json.cpp
|
||||
src/json-uri.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
|
||||
PUBLIC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user