@@ -12,7 +12,7 @@ endif ()
12
12
13
13
# TODO: Version 3, rename the project and namespace to something more compact
14
14
project (nlohmann_json_schema_validator
15
- VERSION 2.2 .0
15
+ VERSION 2.3 .0
16
16
DESCRIPTION "Json validator for nlohmann::json library"
17
17
HOMEPAGE_URL "https://github.com/pboettch/json-schema-validator"
18
18
LANGUAGES CXX)
@@ -63,16 +63,16 @@ endif ()
63
63
set (BUILD_SHARED_LIBS ${nlohmann_json_schema_validator_SHARED_LIBS} )
64
64
65
65
if (JSON_VALIDATOR_TEST_COVERAGE)
66
- if (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
67
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-instr-generate -fcoverage-mapping" )
68
- elseif (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
69
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage" )
70
- else ()
71
- message (WARNING
72
- "JsonValidator: Other toolchain coverage flags unknown.\n "
73
- "Using --coverage as default" )
74
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage" )
75
- endif ()
66
+ if (CMAKE_CXX_COMPILER_ID STREQUAL Clang)
67
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-instr-generate -fcoverage-mapping" )
68
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
69
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage" )
70
+ else ()
71
+ message (WARNING
72
+ "JsonValidator: Other toolchain coverage flags unknown.\n "
73
+ "Using --coverage as default" )
74
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage" )
75
+ endif ()
76
76
endif ()
77
77
78
78
#[==============================================================================================[
@@ -106,19 +106,19 @@ endif ()
106
106
107
107
# Handle configure flags
108
108
if (JSON_VALIDATOR_INSTALL)
109
- # TODO: This is not ideal, this package should not be installing nlohmann::json
110
- # Currently required in order to satisfy cmake exporter
111
- set (JSON_Install ON CACHE BOOL "" )
109
+ # TODO: This is not ideal, this package should not be installing nlohmann::json
110
+ # Currently required in order to satisfy cmake exporter
111
+ set (JSON_Install ON CACHE BOOL "" )
112
112
endif ()
113
113
114
114
# Get all dependencies
115
115
FetchContent_MakeAvailable(${fetch_packages} )
116
116
if (JSON_VALIDATOR_INSTALL AND NOT nlohmann_json_FOUND AND JSON_Install)
117
- # TODO: This is not ideal
118
- message (WARNING
119
- "JsonValidator: No nlohmann::json found on the system and nlohmann_json_schema_validator will be installed\n "
120
- "This will also install nlohmann::json in its typical installation path\n "
121
- "This is not ideal because it might overwrite system installed" )
117
+ # TODO: This is not ideal
118
+ message (WARNING
119
+ "JsonValidator: No nlohmann::json found on the system and nlohmann_json_schema_validator will be installed\n "
120
+ "This will also install nlohmann::json in its typical installation path\n "
121
+ "This is not ideal because it might overwrite system installed" )
122
122
endif ()
123
123
124
124
#[==============================================================================================[
0 commit comments