Skip to content

Avoid setting global CMake directories #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mknaranja opened this issue Dec 4, 2022 · 8 comments
Open

Avoid setting global CMake directories #1451

mknaranja opened this issue Dec 4, 2022 · 8 comments

Comments

@mknaranja
Copy link

mknaranja commented Dec 4, 2022

In a4fb5db, global cmake variables were set. This causes problems when jsoncpp is built together with other libraries by one cmake call. This messes up variables that should not be set or would be used differently for other libraries.

@BillyDonahue
Copy link
Contributor

if you have a fix, that would be great. I don't think anybody here is very handy with CMake.
Meson is the primary build tool and CMake is maintained as a contrib basically.

@eli-schwartz
Copy link

This problem was immediately pointed out in #1163 (comment)

Personally, I just wonder why these variables keep getting reintroduced and then taken out, just to fix tests... why doesn't the test runner set up DLL dependencies for you? Meson does. :D :D

Perhaps the solution is to just remove the testsuite support from cmake entirely? That seems weird too.

@mknaranja
Copy link
Author

Unfortunately I do not have a good solution for json-cpp as I am also not very experimented with cmake and just observed how things got messed up due to this global variables when we wanted to include a recent version of json-cpp.

@mknaranja
Copy link
Author

mknaranja commented Dec 7, 2022

I now had a deeper look at it.

In #1163 the creater opened the issue because the C-Test failed on Windows to introduce that change. Actually, I do not know much about these tests but when I build jsoncpp on a Windows machine with the current version 1.9.5 they also fail:

[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build PATH_TO_REPO/jsoncpp/build --config Debug --target ALL_BUILD -j 10 --
[build] Microsoft (R)-Build-Engine, Version 16.11.2+f32259642 für .NET Framework
[build] Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
[build] 
[build]   jsoncpp_object.vcxproj -> PATH_TO_REPO\jsoncpp\build\src\lib_json\jsoncpp_object.dir\Debug\jsoncpp_object.lib
[build]   jsoncpp_lib.vcxproj -> PATH_TO_REPO\jsoncpp\build\bin\Debug\jsoncpp.dll
[build]   jsontestrunner_exe.vcxproj -> PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe
[build]   jsoncpp_test.vcxproj -> PATH_TO_REPO\jsoncpp\build\bin\Debug\jsoncpp_test.exe
[build]   jsoncpp_static.vcxproj -> PATH_TO_REPO\jsoncpp\build\lib\Debug\jsoncpp_static.lib
[build]   Testing ValueTest/checkNormalizeFloatingPointStr: OK
[build]   Testing ValueTest/memberCount: OK
[build]   Testing ValueTest/objects: OK
[build]   Testing ValueTest/arrays: OK
[build]   Testing ValueTest/resizeArray: OK
[build]   Testing ValueTest/resizePopulatesAllMissingElements: OK
[build]   Testing ValueTest/getArrayValue: OK
[build]   Testing ValueTest/arrayIssue252: OK
[build]   Testing ValueTest/arrayInsertAtRandomIndex: OK
[build]   Testing ValueTest/null: OK
[build]   Testing ValueTest/strings: OK
[build]   Testing ValueTest/bools: OK
[build]   Testing ValueTest/integers: OK
[build]   Testing ValueTest/nonIntegers: OK
[build]   Testing ValueTest/compareNull: OK
[build]   Testing ValueTest/compareInt: OK
[build]   Testing ValueTest/compareUInt: OK
[build]   Testing ValueTest/compareDouble: OK
[build]   Testing ValueTest/compareString: OK
[build]   Testing ValueTest/compareBoolean: OK
[build]   Testing ValueTest/compareArray: OK
[build]   Testing ValueTest/compareObject: OK
[build]   Testing ValueTest/compareType: OK
[build]   Testing ValueTest/CopyObject: OK
[build]   Testing ValueTest/typeChecksThrowExceptions: OK
[build]   Testing ValueTest/offsetAccessors: OK
[build]   Testing ValueTest/StaticString: OK
[build]   Testing ValueTest/WideString: OK
[build]   Testing ValueTest/CommentBefore: OK
[build]   Testing ValueTest/zeroes: OK
[build]   Testing ValueTest/zeroesInKeys: OK
[build]   Testing ValueTest/specialFloats: OK
[build]   Testing ValueTest/precision: OK
[build]   Testing ValueTest/searchValueByPath: OK
[build]   Testing FastWriterTest/dropNullPlaceholders: OK
[build]   Testing FastWriterTest/enableYAMLCompatibility: OK
[build]   Testing FastWriterTest/omitEndingLineFeed: OK
[build]   Testing FastWriterTest/writeNumericValue: OK
[build]   Testing FastWriterTest/writeArrays: OK
[build]   Testing FastWriterTest/writeNestedObjects: OK
[build]   Testing StyledWriterTest/writeNumericValue: OK
[build]   Testing StyledWriterTest/writeArrays: OK
[build]   Testing StyledWriterTest/writeNestedObjects: OK
[build]   Testing StyledWriterTest/multiLineArray: OK
[build]   Testing StyledWriterTest/writeValueWithComment: OK
[build]   Testing StyledStreamWriterTest/writeNumericValue: OK
[build]   Testing StyledStreamWriterTest/writeArrays: OK
[build]   Testing StyledStreamWriterTest/writeNestedObjects: OK
[build]   Testing StyledStreamWriterTest/multiLineArray: OK
[build]   Testing StyledStreamWriterTest/writeValueWithComment: OK
[build]   Testing StreamWriterTest/writeNumericValue: OK
[build]   Testing StreamWriterTest/writeArrays: OK
[build]   Testing StreamWriterTest/writeNestedObjects: OK
[build]   Testing StreamWriterTest/multiLineArray: OK
[build]   Testing StreamWriterTest/dropNullPlaceholders: OK
[build]   Testing StreamWriterTest/enableYAMLCompatibility: OK
[build]   Testing StreamWriterTest/indentation: OK
[build]   Testing StreamWriterTest/writeZeroes: OK
[build]   Testing StreamWriterTest/unicode: OK
[build]   Testing StreamWriterTest/escapeControlCharacters: OK
[build]   Testing StreamWriterTest/escapeTabCharacterWindows: OK
[build]   Testing ReaderTest/parseWithNoErrors: OK
[build]   Testing ReaderTest/parseObject: OK
[build]   Testing ReaderTest/parseArray: OK
[build]   Testing ReaderTest/parseString: OK
[build]   Testing ReaderTest/parseComment: OK
[build]   Testing ReaderTest/streamParseWithNoErrors: OK
[build]   Testing ReaderTest/parseWithNoErrorsTestingOffsets: OK
[build]   Testing ReaderTest/parseWithOneError: OK
[build]   Testing ReaderTest/parseSpecialFloat: OK
[build]   Testing ReaderTest/strictModeParseNumber: OK
[build]   Testing ReaderTest/parseChineseWithOneError: OK
[build]   Testing ReaderTest/parseWithDetailError: OK
[build]   Testing ReaderTest/pushErrorTest: OK
[build]   Testing ReaderTest/allowNumericKeysTest: OK
[build]   Testing CharReaderTest/parseWithNoErrors: OK
[build]   Testing CharReaderTest/parseWithNoErrorsTestingOffsets: OK
[build]   Testing CharReaderTest/parseNumber: OK
[build]   Testing CharReaderTest/parseString: OK
[build]   Testing CharReaderTest/parseComment: OK
[build]   Testing CharReaderTest/parseObjectWithErrors: OK
[build]   Testing CharReaderTest/parseArrayWithErrors: OK
[build]   Testing CharReaderTest/parseWithOneError: OK
[build]   Testing CharReaderTest/parseChineseWithOneError: OK
[build]   Testing CharReaderTest/parseWithDetailError: OK
[build]   Testing CharReaderTest/parseWithStackLimit: OK
[build]   Testing CharReaderTest/testOperator: OK
[build]   Testing CharReaderStrictModeTest/dupKeys: OK
[build]   Testing CharReaderFailIfExtraTest/issue164: OK
[build]   Testing CharReaderFailIfExtraTest/issue107: OK
[build]   Testing CharReaderFailIfExtraTest/commentAfterObject: OK
[build]   Testing CharReaderFailIfExtraTest/commentAfterArray: OK
[build]   Testing CharReaderFailIfExtraTest/commentAfterBool: OK
[build]   Testing CharReaderFailIfExtraTest/parseComment: OK
[build]   Testing CharReaderAllowDropNullTest/issue178: OK
[build]   Testing CharReaderAllowNumericKeysTest/allowNumericKeys: OK
[build]   Testing CharReaderAllowSingleQuotesTest/issue182: OK
[build]   Testing CharReaderAllowZeroesTest/issue176: OK
[build]   Testing CharReaderAllowSpecialFloatsTest/specialFloat: OK
[build]   Testing CharReaderAllowSpecialFloatsTest/issue209: OK
[build]   Testing EscapeSequenceTest/readerParseEscapeSequence: OK
[build]   Testing EscapeSequenceTest/charReaderParseEscapeSequence: OK
[build]   Testing EscapeSequenceTest/writeEscapeSequence: OK
[build]   Testing BuilderTest/settings: OK
[build]   Testing BomTest/skipBom: OK
[build]   Testing BomTest/notSkipBom: OK
[build]   Testing IteratorTest/convert: OK
[build]   Testing IteratorTest/decrement: OK
[build]   Testing IteratorTest/reverseIterator: OK
[build]   Testing IteratorTest/distance: OK
[build]   Testing IteratorTest/nullValues: OK
[build]   Testing IteratorTest/staticStringKey: OK
[build]   Testing IteratorTest/names: OK
[build]   Testing IteratorTest/indexes: OK
[build]   Testing IteratorTest/constness: OK
[build]   Testing RValueTest/moveConstruction: OK
[build]   Testing FuzzTest/fuzzDoesntCrash: OK
[build]   Testing MemberTemplateAs/BehavesSameAsNamedAs: OK
[build]   Testing MemberTemplateIs/BehavesSameAsNamedIs: OK
[build]   Testing VersionTest/VersionNumbersMatch: OK
[build]   All 120 tests passed
[build] Build finished with exit code 0
[proc] Executing command: ctest -j10 -C Debug -T test --output-on-failure
[ctest]    Site: SC-030171
[ctest]    Build name: Win32-MSBuild
[ctest] Create new tag: 20221207-1025 - Experimental
[ctest] Test project PATH_TO_REPO/jsoncpp/build
[ctest]     Start 1: jsoncpp_readerwriter
[ctest]     Start 2: jsoncpp_readerwriter_json_checker
[ctest]     Start 3: jsoncpp_test
[ctest] 1/3 Test #3: jsoncpp_test ........................   Passed    0.08 sec
[ctest] 2/3 Test #1: jsoncpp_readerwriter ................***Failed    3.12 sec
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Missing '}' or object member name
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 5
[ctest]   Missing ',' or ']' in array declaration
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 4
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 18
[ctest]   Missing '}' or object member name
[ctest] 
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_invalid_quote.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_test_array_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_test_array_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_test_object_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_test_stack_limit.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_06.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_07.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_06.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_07.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_08.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_09.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_00.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_complex_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_06_64bits.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_07_64bits.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_08_64bits.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_large_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_preserve_comment_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_04.json"Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   '-1e+9999' is not a number.
[ctest] 
[ctest] 
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_06.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_07.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_08.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_09.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_10.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_11.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_12.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_13.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\test_array_08.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\test_object_05.json"
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_invalid_quote.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_test_array_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_test_array_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_test_object_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_test_stack_limit.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_06.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_07.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_06.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_07.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_08.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_09.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_00.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_complex_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_06_64bits.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_07_64bits.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_08_64bits.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_large_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_preserve_comment_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_06.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_07.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_08.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_09.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_10.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_11.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_12.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_13.json parsing failed
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\test_array_08.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\test_object_05.json OK
[ctest] 
[ctest] Failure details:
[ctest] * Test PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_13.json
[ctest] Parsing failed:
[ctest] 
[ctest] 
[ctest] Test results: 63 passed, 1 failed.
[ctest] 
[ctest] 3/3 Test #2: jsoncpp_readerwriter_json_checker ...***Failed    3.93 sec
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Missing '}' or object member name
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 5
[ctest]   Missing ',' or ']' in array declaration
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 4
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 18
[ctest]   Missing '}' or object member name
[ctest] 
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_invalid_quote.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_test_array_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_test_array_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_test_object_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\fail_test_stack_limit.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_06.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_07.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_06.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_07.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_08.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_09.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_00.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_complex_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_06_64bits.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_07_64bits.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_08_64bits.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_large_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_preserve_comment_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_04.json"Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   '-1e+9999' is not a number.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 1
[ctest]   A valid JSON document must be either an array or an object value.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 26
[ctest]   Missing ',' or '}' in object declaration
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 24
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 28
[ctest]   Missing ',' or '}' in object declaration
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Bad escape sequence in string
[ctest] See Line 1, Column 31 for detail.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Bad escape sequence in string
[ctest] See Line 1, Column 31 for detail.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 18
[ctest]   Missing ':' after object member name
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 18
[ctest]   Missing ',' or ']' in array declaration
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 17
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 26
[ctest]   Missing ':' after object member name
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 26
[ctest]   Missing ',' or ']' in array declaration
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 15
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Bad escape sequence in string
[ctest] See Line 1, Column 8 for detail.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Bad escape sequence in string
[ctest] See Line 2, Column 0 for detail.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   '0e' is not a number.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   Missing '}' or object member name
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   '0e+' is not a number.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 2
[ctest]   '0e+' is not a number.
[ctest] 
[ctest] 
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_06.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_07.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_08.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_09.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_10.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_11.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_12.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_13.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_01.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_02.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_03.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_04.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\test_array_08.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe  --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\test_object_05.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail1.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail11.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail12.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail14.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail15.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail16.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail17.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail19.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail2.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail20.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail21.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail22.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail23.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail24.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail26.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail28.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail29.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail3.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail30.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail31.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail32.json"Failed to parse input file: 
[ctest] * Line 1, Column 41
[ctest]   Missing '}' or object member name
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 12
[ctest]   Missing ',' or ']' in array declaration
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 23
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] Failed to parse input file: 
[ctest] * Line 1, Column 5
[ctest]   Syntax error: value, object or array expected.
[ctest] 
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_invalid_quote.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_test_array_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_test_array_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_test_object_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\fail_test_stack_limit.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_06.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_array_07.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_06.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_07.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_08.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_basic_09.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_00.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_comment_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_complex_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_06_64bits.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_07_64bits.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_integer_08_64bits.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_large_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_object_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_preserve_comment_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_06.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_07.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_08.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_09.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_10.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_11.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_12.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_13.json parsing failed
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_01.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_02.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_03.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_04.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\legacy_test_string_unicode_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\test_array_08.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\test_object_05.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail1.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail11.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail12.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail14.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail15.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail16.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail17.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail19.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail2.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail20.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail21.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail22.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail23.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail24.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail26.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail28.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail29.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail3.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail30.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail31.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail32.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail33.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail5.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail6.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\pass1.json
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail33.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail5.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\fail6.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\pass1.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\pass2.json"
[ctest] PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe --json-checker --json-writer StyledWriter "PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\pass3.json"
[ctest]  OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\pass2.json OK
[ctest] TESTING: PATH_TO_REPO\jsoncpp\test\data\../jsonchecker\pass3.json OK
[ctest] 
[ctest] Failure details:
[ctest] * Test PATH_TO_REPO\jsoncpp\test\data\legacy_test_real_13.json
[ctest] Parsing failed:
[ctest] 
[ctest] 
[ctest] Test results: 63 passed, 1 failed.
[ctest] 
[ctest] 
[ctest] 33% tests passed, 2 tests failed out of 3
[ctest] 
[ctest] Total Test time (real) =   3.94 sec
[ctest] 
[ctest] The following tests FAILED:
[ctest] 	  1 - jsoncpp_readerwriter (Failed)
[ctest] 	  2 - jsoncpp_readerwriter_json_checker (Failed)
[ctest] Errors while running CTest
[proc] The command: ctest -j10 -C Debug -T test --output-on-failure exited with code: 8 and signal: null
[ctest] CTest finished with return code 8

Maybe this is due to some problem with the creation of a shared library? I do not know, I only know that when we include jsoncpp on Windows in our CI, we always build jsoncpp static via cmake (for now at least).

However, whatever the above problem is, I think that a better workaround (i.e., still not a very good solution) to my initial problem would be to only address the Windows compiler if the problem happens on Windows.

Furthermore, I think it makes much sense to not set these variables globally.

Here's the output of my windows built with cmake:

[main] Building folder: jsoncpp 
[main] Configuring folder: jsoncpp 
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -SPATH_TO_REPO/jsoncpp -BPATH_TO_REPO/jsoncpp/build -G "Visual Studio 16 2019" -T host=x64 -A x64
[cmake] Not searching for unused variables given on the command line.
[cmake] -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
[cmake] -- The CXX compiler identification is MSVC 19.29.30143.0
[cmake] -- Detecting CXX compiler ABI info
[cmake] -- Detecting CXX compiler ABI info - done
[cmake] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
[cmake] -- Detecting CXX compile features
[cmake] -- Detecting CXX compile features - done
[cmake] -- JsonCpp Version: 1.9.5
[cmake] -- Looking for C++ include clocale
[cmake] -- Looking for C++ include clocale - found
[cmake] -- Looking for localeconv
[cmake] -- Looking for localeconv - found
[cmake] -- Looking for C++ include sys/types.h
[cmake] -- Looking for C++ include sys/types.h - found
[cmake] -- Looking for C++ include stdint.h
[cmake] -- Looking for C++ include stdint.h - found
[cmake] -- Looking for C++ include stddef.h
[cmake] -- Looking for C++ include stddef.h - found
[cmake] -- Check size of lconv
[cmake] -- Check size of lconv - done
[cmake] -- Performing Test HAVE_DECIMAL_POINT
[cmake] -- Performing Test HAVE_DECIMAL_POINT - Success
[cmake] -- Found Python3: C:/ProgramData/Miniforge3/python.exe (found version "3.8.6") found components: Interpreter 
[cmake] -- Configuring done
[cmake] -- Generating done
[cmake] -- Build files have been written to: PATH_TO_REPO/jsoncpp/build
[build] Starting build
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build PATH_TO_REPO/jsoncpp/build --config Debug --target ALL_BUILD -j 10 --
[build] Microsoft (R)-Build-Engine, Version 16.11.2+f32259642 für .NET Framework
[build] Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
[build] 
[build]   Checking Build System
[build]   Building Custom Rule PATH_TO_REPO/jsoncpp/src/lib_json/CMakeLists.txt
[build]   json_reader.cpp
[build]   json_value.cpp
[build]   json_writer.cpp
[build]   Code wird generiert...
[build]   jsoncpp_object.vcxproj ->PATH_TO_REPO\jsoncpp\build\src\lib_json\jsoncpp_object.dir\Debug\jsoncpp_object.lib
[build]   Building Custom Rule PATH_TO_REPO/jsoncpp/src/lib_json/CMakeLists.txt
[build]   json_reader.cpp
[build]   Building Custom Rule PATH_TO_REPO/jsoncpp/src/lib_json/CMakeLists.txt
[build]   json_reader.cpp
[build]   json_value.cpp
[build]   json_value.cpp
[build]   json_writer.cpp
[build]   json_writer.cpp
[build]   Code wird generiert...
[build]   Code wird generiert...
[build]   jsoncpp_static.vcxproj ->PATH_TO_REPO\jsoncpp\build\lib\Debug\jsoncpp_static.lib
[build]      Bibliothek "PATH_TO_REPO/jsoncpp/build/lib/Debug/jsoncpp.lib" und Objekt "PATH_TO_REPO/jsoncpp/build/lib/Debug/jsoncpp.exp" werden erstellt.
[build]   jsoncpp_lib.vcxproj ->PATH_TO_REPO\jsoncpp\build\bin\Debug\jsoncpp.dll
[build]   Building Custom Rule PATH_TO_REPO/jsoncpp/src/test_lib_json/CMakeLists.txt
[build]   Building Custom Rule PATH_TO_REPO/jsoncpp/src/jsontestrunner/CMakeLists.txt
[build]   jsontest.cpp
[build]   main.cpp
[build]   fuzz.cpp
[build]   jsontestrunner_exe.vcxproj ->PATH_TO_REPO\jsoncpp\build\bin\Debug\jsontestrunner_exe.exe
[build]   main.cpp
[build]   Code wird generiert...
[build]   jsoncpp_test.vcxproj ->PATH_TO_REPO\jsoncpp\build\bin\Debug\jsoncpp_test.exe
[build]   Testing ValueTest/checkNormalizeFloatingPointStr: OK
[build]   Testing ValueTest/memberCount: OK
[build]   Testing ValueTest/objects: OK
[build]   Testing ValueTest/arrays: OK
[build]   Testing ValueTest/resizeArray: OK
[build]   Testing ValueTest/resizePopulatesAllMissingElements: OK
[build]   Testing ValueTest/getArrayValue: OK
[build]   Testing ValueTest/arrayIssue252: OK
[build]   Testing ValueTest/arrayInsertAtRandomIndex: OK
[build]   Testing ValueTest/null: OK
[build]   Testing ValueTest/strings: OK
[build]   Testing ValueTest/bools: OK
[build]   Testing ValueTest/integers: OK
[build]   Testing ValueTest/nonIntegers: OK
[build]   Testing ValueTest/compareNull: OK
[build]   Testing ValueTest/compareInt: OK
[build]   Testing ValueTest/compareUInt: OK
[build]   Testing ValueTest/compareDouble: OK
[build]   Testing ValueTest/compareString: OK
[build]   Testing ValueTest/compareBoolean: OK
[build]   Testing ValueTest/compareArray: OK
[build]   Testing ValueTest/compareObject: OK
[build]   Testing ValueTest/compareType: OK
[build]   Testing ValueTest/CopyObject: OK
[build]   Testing ValueTest/typeChecksThrowExceptions: OK
[build]   Testing ValueTest/offsetAccessors: OK
[build]   Testing ValueTest/StaticString: OK
[build]   Testing ValueTest/WideString: OK
[build]   Testing ValueTest/CommentBefore: OK
[build]   Testing ValueTest/zeroes: OK
[build]   Testing ValueTest/zeroesInKeys: OK
[build]   Testing ValueTest/specialFloats: OK
[build]   Testing ValueTest/precision: OK
[build]   Testing ValueTest/searchValueByPath: OK
[build]   Testing FastWriterTest/dropNullPlaceholders: OK
[build]   Testing FastWriterTest/enableYAMLCompatibility: OK
[build]   Testing FastWriterTest/omitEndingLineFeed: OK
[build]   Testing FastWriterTest/writeNumericValue: OK
[build]   Testing FastWriterTest/writeArrays: OK
[build]   Testing FastWriterTest/writeNestedObjects: OK
[build]   Testing StyledWriterTest/writeNumericValue: OK
[build]   Testing StyledWriterTest/writeArrays: OK
[build]   Testing StyledWriterTest/writeNestedObjects: OK
[build]   Testing StyledWriterTest/multiLineArray: OK
[build]   Testing StyledWriterTest/writeValueWithComment: OK
[build]   Testing StyledStreamWriterTest/writeNumericValue: OK
[build]   Testing StyledStreamWriterTest/writeArrays: OK
[build]   Testing StyledStreamWriterTest/writeNestedObjects: OK
[build]   Testing StyledStreamWriterTest/multiLineArray: OK
[build]   Testing StyledStreamWriterTest/writeValueWithComment: OK
[build]   Testing StreamWriterTest/writeNumericValue: OK
[build]   Testing StreamWriterTest/writeArrays: OK
[build]   Testing StreamWriterTest/writeNestedObjects: OK
[build]   Testing StreamWriterTest/multiLineArray: OK
[build]   Testing StreamWriterTest/dropNullPlaceholders: OK
[build]   Testing StreamWriterTest/enableYAMLCompatibility: OK
[build]   Testing StreamWriterTest/indentation: OK
[build]   Testing StreamWriterTest/writeZeroes: OK
[build]   Testing StreamWriterTest/unicode: OK
[build]   Testing StreamWriterTest/escapeControlCharacters: OK
[build]   Testing StreamWriterTest/escapeTabCharacterWindows: OK
[build]   Testing ReaderTest/parseWithNoErrors: OK
[build]   Testing ReaderTest/parseObject: OK
[build]   Testing ReaderTest/parseArray: OK
[build]   Testing ReaderTest/parseString: OK
[build]   Testing ReaderTest/parseComment: OK
[build]   Testing ReaderTest/streamParseWithNoErrors: OK
[build]   Testing ReaderTest/parseWithNoErrorsTestingOffsets: OK
[build]   Testing ReaderTest/parseWithOneError: OK
[build]   Testing ReaderTest/parseSpecialFloat: OK
[build]   Testing ReaderTest/strictModeParseNumber: OK
[build]   Testing ReaderTest/parseChineseWithOneError: OK
[build]   Testing ReaderTest/parseWithDetailError: OK
[build]   Testing ReaderTest/pushErrorTest: OK
[build]   Testing ReaderTest/allowNumericKeysTest: OK
[build]   Testing CharReaderTest/parseWithNoErrors: OK
[build]   Testing CharReaderTest/parseWithNoErrorsTestingOffsets: OK
[build]   Testing CharReaderTest/parseNumber: OK
[build]   Testing CharReaderTest/parseString: OK
[build]   Testing CharReaderTest/parseComment: OK
[build]   Testing CharReaderTest/parseObjectWithErrors: OK
[build]   Testing CharReaderTest/parseArrayWithErrors: OK
[build]   Testing CharReaderTest/parseWithOneError: OK
[build]   Testing CharReaderTest/parseChineseWithOneError: OK
[build]   Testing CharReaderTest/parseWithDetailError: OK
[build]   Testing CharReaderTest/parseWithStackLimit: OK
[build]   Testing CharReaderTest/testOperator: OK
[build]   Testing CharReaderStrictModeTest/dupKeys: OK
[build]   Testing CharReaderFailIfExtraTest/issue164: OK
[build]   Testing CharReaderFailIfExtraTest/issue107: OK
[build]   Testing CharReaderFailIfExtraTest/commentAfterObject: OK
[build]   Testing CharReaderFailIfExtraTest/commentAfterArray: OK
[build]   Testing CharReaderFailIfExtraTest/commentAfterBool: OK
[build]   Testing CharReaderFailIfExtraTest/parseComment: OK
[build]   Testing CharReaderAllowDropNullTest/issue178: OK
[build]   Testing CharReaderAllowNumericKeysTest/allowNumericKeys: OK
[build]   Testing CharReaderAllowSingleQuotesTest/issue182: OK
[build]   Testing CharReaderAllowZeroesTest/issue176: OK
[build]   Testing CharReaderAllowSpecialFloatsTest/specialFloat: OK
[build]   Testing CharReaderAllowSpecialFloatsTest/issue209: OK
[build]   Testing EscapeSequenceTest/readerParseEscapeSequence: OK
[build]   Testing EscapeSequenceTest/charReaderParseEscapeSequence: OK
[build]   Testing EscapeSequenceTest/writeEscapeSequence: OK
[build]   Testing BuilderTest/settings: OK
[build]   Testing BomTest/skipBom: OK
[build]   Testing BomTest/notSkipBom: OK
[build]   Testing IteratorTest/convert: OK
[build]   Testing IteratorTest/decrement: OK
[build]   Testing IteratorTest/reverseIterator: OK
[build]   Testing IteratorTest/distance: OK
[build]   Testing IteratorTest/nullValues: OK
[build]   Testing IteratorTest/staticStringKey: OK
[build]   Testing IteratorTest/names: OK
[build]   Testing IteratorTest/indexes: OK
[build]   Testing IteratorTest/constness: OK
[build]   Testing RValueTest/moveConstruction: OK
[build]   Testing FuzzTest/fuzzDoesntCrash: OK
[build]   Testing MemberTemplateAs/BehavesSameAsNamedAs: OK
[build]   Testing MemberTemplateIs/BehavesSameAsNamedIs: OK
[build]   Testing VersionTest/VersionNumbersMatch: OK
[build]   All 120 tests passed
[build]   Building Custom Rule PATH_TO_REPO/jsoncpp/CMakeLists.txt
[build] Build finished with exit code 0

For the merge request see: #1453

@atrelinski
Copy link

Setting CMAKE_*_OUTPUT_DIRECTORY is a very bad idea.
When JsonCpp is consumed as submodule by any other component (library, executable) then this comportment is forced to use those settings, while usually it use different build/install tree.

IMO, there are two ways how this problem can be solved

  1. Set CMAKE_*_OUTPUT_DIRECTORY only when if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR) is true, which means that JsonCpp is build as stand alone (not as submodule)
  2. Provide way to consume CMakeLists.txt from src directory like add_subdirectory(jsoncpp/src) (instead of add_subdirectory(jsoncpp) ) but as I remember then VERSION variable is missing since it is defined in the CMakeLists.txt from the root directory.

@mknaranja
Copy link
Author

mknaranja commented Dec 15, 2022

@atrelinski You are free to improve the workaround I proposed. It is anyhow much better then the current implementation which sets global variables for all compilers. Mine only sets local variables for MSVC only.

@nkh-lab
Copy link
Contributor

nkh-lab commented Jan 11, 2023

So, this is PR based on @atrelinski proposal.

@atrelinski
Copy link

@BillyDonahue

if you have a fix...

Yes, now we do 😄
It is here: #1459
Are You able to review and merge it?

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants