Merge 0661368742 into 95e07469ae
This commit is contained in:
commit
7aa91c4b1c
@ -28,10 +28,20 @@ if(NOT TARGET json-hpp)
|
||||
endif()
|
||||
|
||||
# and one for the validator
|
||||
add_library(json-schema-validator SHARED
|
||||
src/json-schema-draft4.json.cpp
|
||||
src/json-uri.cpp
|
||||
src/json-validator.cpp)
|
||||
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)
|
||||
target_compile_definitions(json-schema-validator
|
||||
PRIVATE
|
||||
-DJSON_SCHEMA_VALIDATOR_SHARED_LIB)
|
||||
endif()
|
||||
|
||||
target_include_directories(json-schema-validator
|
||||
PUBLIC
|
||||
|
||||
@ -26,7 +26,7 @@
|
||||
#ifndef NLOHMANN_JSON_SCHEMA_HPP__
|
||||
#define NLOHMANN_JSON_SCHEMA_HPP__
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && defined(JSON_SCHEMA_VALIDATOR_SHARED_LIB)
|
||||
# ifdef JSON_SCHEMA_VALIDATOR_EXPORTS
|
||||
# define JSON_SCHEMA_VALIDATOR_API __declspec(dllexport)
|
||||
# else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user